Spaces:
Sleeping
Sleeping
Truong-Phuc Nguyen
commited on
Update app.py
Browse files
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;'>Investigation Legal Dataset checker for Machine Reading Comprehension</h2>", unsafe_allow_html=True)
|
8 |
|
9 |
-
df = pd.read_csv(filepath_or_buffer='./
|
10 |
|
11 |
if 'idx' not in st.session_state:
|
12 |
st.session_state.idx = 0
|
@@ -47,4 +47,4 @@ if len(df) != 0:
|
|
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='./
|
|
|
6 |
|
7 |
st.markdown("<h2 style='text-align: center;'>Investigation Legal Dataset checker for Machine Reading Comprehension</h2>", unsafe_allow_html=True)
|
8 |
|
9 |
+
df = pd.read_csv(filepath_or_buffer='./GeneratedLegalData.csv.csv')
|
10 |
|
11 |
if 'idx' not in st.session_state:
|
12 |
st.session_state.idx = 0
|
|
|
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='./GeneratedLegalData.csv', index=None)
|