Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
84 |
|
85 |
st.download_button(
|
86 |
label="Download data as CSV",
|
87 |
-
data=
|
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 |
)
|