taskswithcode commited on
Commit
618a546
1 Parent(s): 032dbce

Added text

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -179,7 +179,10 @@ def app_main(app_mode,example_files,model_name_files):
179
 
180
  with st.form('twc_form'):
181
 
182
- uploaded_file = st.file_uploader("Step 1. Upload text file(one sentence in a line) or choose an example text file below", type=".txt")
 
 
 
183
 
184
  selected_file_index = st.selectbox(label=f'Example files ({len(example_file_names)})',
185
  options = list(dict.keys(example_file_names)), index=0, key = "twc_file")
 
179
 
180
  with st.form('twc_form'):
181
 
182
+ step1_line = "Step 1. Upload text file(one sentence in a line) or choose an example text file below"
183
+ if (app_mode == DOC_RETRIEVAL):
184
+ step1_line += ". The line need is treated as the query"
185
+ uploaded_file = st.file_uploader(step1_line, type=".txt")
186
 
187
  selected_file_index = st.selectbox(label=f'Example files ({len(example_file_names)})',
188
  options = list(dict.keys(example_file_names)), index=0, key = "twc_file")