NILC-ICMC-USP commited on
Commit
ab3c82e
·
verified ·
1 Parent(s): bddc7ab

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -220,12 +220,13 @@ with rowall[1]:
220
  with mode2:
221
  rowmode2 = st.columns([1,13,1,14,1])
222
  predictions = False
223
- with rowmode2[3]:
224
- explanation = 'Upload a text file in order to parse multiple sentences. The file must be in a txt format with one sentence per line. \
225
- In case you have multiple sentences altogether, first select the option "Segment text for me" below, and we split it in lines for you.'
226
- option1, option2 = 'Text is ready (one sentence per line)','Segment text for me'
227
- split_option = st.radio(explanation,[option1,option2])
228
  with rowmode2[1]:
 
 
 
 
 
 
229
  with st.form("uploadfile_parser"):
230
  uploaded_file = st.file_uploader("Choose a file")
231
  submit = st.form_submit_button('Run')
 
220
  with mode2:
221
  rowmode2 = st.columns([1,13,1,14,1])
222
  predictions = False
 
 
 
 
 
223
  with rowmode2[1]:
224
+ explanation = 'To analyze several sentences at the same time, upload a text file. Your text must be in txt format (UTF-8). \
225
+ If your text contains one sentence per line, select the "already segmented, ready to be parsed" option. \
226
+ If your text contains several sentences in the same segment, select the "segment the text before parsing" option.'
227
+ option1, option2 = 'already segmented, ready to be parsed','segment the text before parsing'
228
+ split_option = st.radio(explanation,[option1,option2])
229
+ with rowmode2[3]:
230
  with st.form("uploadfile_parser"):
231
  uploaded_file = st.file_uploader("Choose a file")
232
  submit = st.form_submit_button('Run')