Spaces:
Sleeping
Sleeping
Commit
•
ec06c4b
1
Parent(s):
281885a
Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,8 @@ from st_aggrid import AgGrid, GridOptionsBuilder, JsCode,GridUpdateMode
|
|
12 |
import base64
|
13 |
showWarningOnDirectExecution = False
|
14 |
|
|
|
|
|
15 |
|
16 |
|
17 |
# Check if 'key' already exists in session_state
|
@@ -81,11 +83,8 @@ with st.form('mform', clear_on_submit=False):
|
|
81 |
selected_df = pd.DataFrame()
|
82 |
pass
|
83 |
st.success('Feature vector successfully created.')
|
|
|
84 |
|
85 |
-
|
86 |
-
return df.to_csv(index=False).encode('utf-8')
|
87 |
-
|
88 |
|
89 |
-
csv = convert_df(selected_df)
|
90 |
|
91 |
-
st.download_button("Press to Download the Feature Vector", csv,"ASCARIS_SAV_rep.csv","text/csv",key='download-csv')
|
|
|
12 |
import base64
|
13 |
showWarningOnDirectExecution = False
|
14 |
|
15 |
+
def convert_df(df):
|
16 |
+
return df.to_csv(index=False).encode('utf-8')
|
17 |
|
18 |
|
19 |
# Check if 'key' already exists in session_state
|
|
|
83 |
selected_df = pd.DataFrame()
|
84 |
pass
|
85 |
st.success('Feature vector successfully created.')
|
86 |
+
csv = convert_df(selected_df)
|
87 |
|
88 |
+
st.download_button("Press to Download the Feature Vector", csv,"ASCARIS_SAV_rep.csv","text/csv",key='download-csv')
|
|
|
|
|
89 |
|
|
|
90 |
|
|