Truong-Phuc commited on
Commit
abd2dd9
1 Parent(s): 2e2400c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,7 +6,7 @@ st.set_page_config(page_icon='🍃', page_title='MRC for Legal Document Dataset
6
 
7
  st.markdown("<h2 style='text-align: center;'>MRC Dataset Checker</h2>", unsafe_allow_html=True)
8
 
9
- df = pd.read_csv(filepath_or_buffer='./Legal_AbstractiveA.csv')
10
 
11
  if 'idx' not in st.session_state:
12
  st.session_state.idx = 0
@@ -63,7 +63,7 @@ if len(df) != 0:
63
  df['criteria_2'][st.session_state.idx] = criteria_2
64
  df['criteria_3'][st.session_state.idx] = criteria_3
65
  btn_download = col_4.download_button(data=df.to_csv(), label=':arrow_down_small: Tải file', use_container_width=True, file_name="checked.csv", mime="text/csv")
66
- df.to_csv(path_or_buf='./Legal_AbstractiveA.csv', index=None)
67
 
68
  if btn_goto:
69
  st.session_state.idx = txt_goto - 1
 
6
 
7
  st.markdown("<h2 style='text-align: center;'>MRC Dataset Checker</h2>", unsafe_allow_html=True)
8
 
9
+ df = pd.read_csv(filepath_or_buffer='./LegalAbstractiveA_checked.csv')
10
 
11
  if 'idx' not in st.session_state:
12
  st.session_state.idx = 0
 
63
  df['criteria_2'][st.session_state.idx] = criteria_2
64
  df['criteria_3'][st.session_state.idx] = criteria_3
65
  btn_download = col_4.download_button(data=df.to_csv(), label=':arrow_down_small: Tải file', use_container_width=True, file_name="checked.csv", mime="text/csv")
66
+ df.to_csv(path_or_buf='./LegalAbstractiveA_checked.csv', index=None)
67
 
68
  if btn_goto:
69
  st.session_state.idx = txt_goto - 1