sagawa commited on
Commit
d7bbbc7
·
1 Parent(s): 5698d1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,11 +80,11 @@ if CFG.uploaded_file is not None:
80
  # IMPORTANT: Cache the conversion to prevent computation on every rerun
81
  return df.to_csv(index=False)
82
 
83
- output_df = convert_df(output_df)
84
 
85
  st.download_button(
86
  label="Download data as CSV",
87
- data=output_df,
88
  file_name=input_data + '_result.csv',
89
  mime='text/csv',
90
  )
 
80
  # IMPORTANT: Cache the conversion to prevent computation on every rerun
81
  return df.to_csv(index=False)
82
 
83
+ csv = convert_df(output_df)
84
 
85
  st.download_button(
86
  label="Download data as CSV",
87
+ data=csv,
88
  file_name=input_data + '_result.csv',
89
  mime='text/csv',
90
  )