taskswithcode commited on
Commit
82038d9
1 Parent(s): e3a76fb
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -207,7 +207,7 @@ def app_main(app_mode,example_files,model_name_files):
207
 
208
  with st.form('twc_form'):
209
 
210
- step1_line = "Step 1. Upload text file(one sentence in a line) or choose an example text file below"
211
  if (app_mode == DOC_RETRIEVAL):
212
  step1_line += ". The first line is treated as the query"
213
  uploaded_file = st.file_uploader(step1_line, type=".txt")
@@ -216,7 +216,7 @@ def app_main(app_mode,example_files,model_name_files):
216
  options = list(dict.keys(example_file_names)), index=0, key = "twc_file")
217
  st.write("")
218
  options_arr,markdown_str = construct_model_info_for_display(model_names)
219
- selection_label = 'Step 2. Select Model'
220
  selected_model = st.selectbox(label=selection_label,
221
  options = options_arr, index=0, key = "twc_model")
222
  st.write("")
@@ -224,7 +224,7 @@ def app_main(app_mode,example_files,model_name_files):
224
  hf_link_str = "<div style=\"font-size:12px; color: #9f9f9f; text-align: left\"><a href='https://huggingface.co/models?pipeline_tag=sentence-similarity' target = '_blank'>List of Huggingface semantic search models</a><br/><br/><br/></div>"
225
  st.markdown(hf_link_str, unsafe_allow_html=True)
226
  if (app_mode == SEM_SIMILARITY):
227
- main_index = st.number_input('Step 3. Enter index of sentence in file to make it the main sentence',value=1,min_value = 1)
228
  else:
229
  main_index = 1
230
  st.write("")
 
207
 
208
  with st.form('twc_form'):
209
 
210
+ step1_line = "Upload text file(one sentence in a line) or choose an example text file below"
211
  if (app_mode == DOC_RETRIEVAL):
212
  step1_line += ". The first line is treated as the query"
213
  uploaded_file = st.file_uploader(step1_line, type=".txt")
 
216
  options = list(dict.keys(example_file_names)), index=0, key = "twc_file")
217
  st.write("")
218
  options_arr,markdown_str = construct_model_info_for_display(model_names)
219
+ selection_label = 'Select Model'
220
  selected_model = st.selectbox(label=selection_label,
221
  options = options_arr, index=0, key = "twc_model")
222
  st.write("")
 
224
  hf_link_str = "<div style=\"font-size:12px; color: #9f9f9f; text-align: left\"><a href='https://huggingface.co/models?pipeline_tag=sentence-similarity' target = '_blank'>List of Huggingface semantic search models</a><br/><br/><br/></div>"
225
  st.markdown(hf_link_str, unsafe_allow_html=True)
226
  if (app_mode == SEM_SIMILARITY):
227
+ main_index = st.number_input('Enter index of sentence in file to make it the main sentence',value=1,min_value = 1)
228
  else:
229
  main_index = 1
230
  st.write("")