taskswithcode commited on
Commit
6aef44f
1 Parent(s): 3fcea11
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -19,7 +19,7 @@ CLUSTERING="3"
19
 
20
 
21
  use_case = {"1":"Finding similar phrases/sentences","2":"Retrieving semantically matching information to a query. It may not be a factual match","3":"Clustering"}
22
- use_case_url = {"1":"https://huggingface.co/spaces/taskswithcode/semantic_similarity","2":"https://huggingface.co/spaces/taskswithcode/semantic_search","3":""}
23
 
24
 
25
  APP_NAME = "hf/semantic_similarity"
@@ -255,6 +255,8 @@ def app_main(app_mode,example_files,model_name_files):
255
  with display_area.container():
256
  device = 'GPU' if torch.cuda.is_available() else 'CPU'
257
  response_info = f"Computation time on {device}: {time.time() - start:.2f} secs for {len(sentences)} sentences"
 
 
258
  display_results(sentences,main_index - 1,results,response_info,app_mode,run_model)
259
  #st.json(results)
260
  st.download_button(
 
19
 
20
 
21
  use_case = {"1":"Finding similar phrases/sentences","2":"Retrieving semantically matching information to a query. It may not be a factual match","3":"Clustering"}
22
+ use_case_url = {"1":"https://huggingface.co/spaces/taskswithcode/semantic_similarity","2":"https://huggingface.co/spaces/taskswithcode/semantic_search","3":"https://huggingface.co/spaces/taskswithcode/semantic_clustering"}
23
 
24
 
25
  APP_NAME = "hf/semantic_similarity"
 
255
  with display_area.container():
256
  device = 'GPU' if torch.cuda.is_available() else 'CPU'
257
  response_info = f"Computation time on {device}: {time.time() - start:.2f} secs for {len(sentences)} sentences"
258
+ if (len(custom_model_selection) != 0):
259
+ st.info("Custom model overrides model selection in step 2 above. So please clear the custom model text box to choose models from step 2")
260
  display_results(sentences,main_index - 1,results,response_info,app_mode,run_model)
261
  #st.json(results)
262
  st.download_button(