Spaces:
Sleeping
Sleeping
Truong-Phuc Nguyen
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -46,5 +46,5 @@ if len(df) != 0:
|
|
46 |
df['context'][st.session_state.idx] = txt_context
|
47 |
df['question'][st.session_state.idx] = txt_question
|
48 |
df['answer'][st.session_state.idx] = txt_answer
|
49 |
-
btn_download = col_4.download_button(data=df, label=':arrow_down_small: Download file', use_container_width=True, file_name="checked.csv", mime="text/csv")
|
50 |
df.to_csv(path_or_buf='./Legal_AbstractiveA.csv', index=None)
|
|
|
46 |
df['context'][st.session_state.idx] = txt_context
|
47 |
df['question'][st.session_state.idx] = txt_question
|
48 |
df['answer'][st.session_state.idx] = txt_answer
|
49 |
+
btn_download = col_4.download_button(data=df.to_csv(), label=':arrow_down_small: Download file', use_container_width=True, file_name="checked.csv", mime="text/csv")
|
50 |
df.to_csv(path_or_buf='./Legal_AbstractiveA.csv', index=None)
|