Truong-Phuc Nguyen commited on
Commit
20be6f0
·
verified ·
1 Parent(s): 080d2e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)