taskswithcode commited on
Commit
1feb2b0
1 Parent(s): 809fc00
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -202,7 +202,7 @@ def app_main(app_mode,example_files,model_name_files):
202
 
203
  with st.form('twc_form'):
204
 
205
- step1_line = "Step 1. Upload text file(one sentence in a line) or choose an example text file below"
206
  if (app_mode == DOC_RETRIEVAL):
207
  step1_line += ". The first line is treated as the query"
208
  uploaded_file = st.file_uploader(step1_line, type=".txt")
@@ -211,7 +211,7 @@ def app_main(app_mode,example_files,model_name_files):
211
  options = list(dict.keys(example_file_names)), index=0, key = "twc_file")
212
  st.write("")
213
  options_arr,markdown_str = construct_model_info_for_display(model_names)
214
- selection_label = 'Step 2. Select Model'
215
  selected_model = st.selectbox(label=selection_label,
216
  options = options_arr, index=0, key = "twc_model")
217
  st.write("")
@@ -219,7 +219,7 @@ def app_main(app_mode,example_files,model_name_files):
219
  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 sentence similarity models</a><br/><br/><br/></div>"
220
  st.markdown(hf_link_str, unsafe_allow_html=True)
221
  if (app_mode == SEM_SIMILARITY):
222
- main_index = st.number_input('Step 3. Enter index of sentence in file to make it the main sentence',value=1,min_value = 1)
223
  else:
224
  main_index = 1
225
  st.write("")
 
202
 
203
  with st.form('twc_form'):
204
 
205
+ step1_line = "Upload text file(one sentence in a line) or choose an example text file below"
206
  if (app_mode == DOC_RETRIEVAL):
207
  step1_line += ". The first line is treated as the query"
208
  uploaded_file = st.file_uploader(step1_line, type=".txt")
 
211
  options = list(dict.keys(example_file_names)), index=0, key = "twc_file")
212
  st.write("")
213
  options_arr,markdown_str = construct_model_info_for_display(model_names)
214
+ selection_label = 'Select Model'
215
  selected_model = st.selectbox(label=selection_label,
216
  options = options_arr, index=0, key = "twc_model")
217
  st.write("")
 
219
  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 sentence similarity models</a><br/><br/><br/></div>"
220
  st.markdown(hf_link_str, unsafe_allow_html=True)
221
  if (app_mode == SEM_SIMILARITY):
222
+ main_index = st.number_input('Enter index of sentence in file to make it the main sentence',value=1,min_value = 1)
223
  else:
224
  main_index = 1
225
  st.write("")