Upload folder using huggingface_hub
Browse files- app/app.py +1 -1
app/app.py
CHANGED
@@ -36,7 +36,7 @@ if st.button("Run Data Cleaning API"):
|
|
36 |
# run data cleaning API on csv_file
|
37 |
output_df = main(csv_file)
|
38 |
|
39 |
-
@st.
|
40 |
def convert_df(df):
|
41 |
# IMPORTANT: Cache the conversion to prevent computation on every rerun
|
42 |
return df.to_csv().encode('utf-8')
|
|
|
36 |
# run data cleaning API on csv_file
|
37 |
output_df = main(csv_file)
|
38 |
|
39 |
+
@st.cache_data
|
40 |
def convert_df(df):
|
41 |
# IMPORTANT: Cache the conversion to prevent computation on every rerun
|
42 |
return df.to_csv().encode('utf-8')
|