taskswithcode commited on
Commit
f09cc2c
1 Parent(s): 747e065

Additionss

Browse files
Files changed (3) hide show
  1. app.py +2 -2
  2. run.sh +2 -0
  3. view_count.txt +1 -1
app.py CHANGED
@@ -17,7 +17,7 @@ CLUSTERING="3"
17
 
18
 
19
  use_case = {"1":"Finding similar phrases/sentences","2":"Retrieving semantically matching information to a query. It may not be a factual match","3":"Clustering"}
20
-
21
 
22
 
23
 
@@ -170,7 +170,7 @@ def app_main(app_mode,example_files,model_name_files):
170
  model_names = json.load(fp)
171
  curr_use_case = use_case[app_mode].split(".")[0]
172
  st.markdown("<h5 style='text-align: center;'>Compare popular/state-of-the-art models for tasks using sentence embeddings</h5>", unsafe_allow_html=True)
173
- st.markdown(f"<div style='color: #4f4f4f; text-align: left'>Use cases for sentence embeddings<br/>&nbsp;&nbsp;&nbsp;•&nbsp;&nbsp;{use_case['1']}<br/>&nbsp;&nbsp;&nbsp;•&nbsp;&nbsp;{use_case['2']}<br/>&nbsp;&nbsp;&nbsp;•&nbsp;&nbsp;{use_case['3']}<br/><i>This app illustrates <b>'{curr_use_case}'</b> use case</i></div>", unsafe_allow_html=True)
174
  st.markdown(f"<div style='color: #9f9f9f; text-align: right'>views:&nbsp;{get_views()}</div>", unsafe_allow_html=True)
175
 
176
 
 
17
 
18
 
19
  use_case = {"1":"Finding similar phrases/sentences","2":"Retrieving semantically matching information to a query. It may not be a factual match","3":"Clustering"}
20
+ use_case_url = {"1":"https://huggingface.co/spaces/taskswithcode/semantic_similarity","2":"https://huggingface.co/spaces/taskswithcode/semantic_search","3":""}
21
 
22
 
23
 
 
170
  model_names = json.load(fp)
171
  curr_use_case = use_case[app_mode].split(".")[0]
172
  st.markdown("<h5 style='text-align: center;'>Compare popular/state-of-the-art models for tasks using sentence embeddings</h5>", unsafe_allow_html=True)
173
+ st.markdown(f"<div style='color: #4f4f4f; text-align: left'>Use cases for sentence embeddings<br/>&nbsp;&nbsp;&nbsp;•&nbsp;&nbsp;<a href=\'{use_case_url['1']}\' target='_blank'>{use_case['1']}</a><br/>&nbsp;&nbsp;&nbsp;•&nbsp;&nbsp;{use_case['2']}<br/>&nbsp;&nbsp;&nbsp;•&nbsp;&nbsp;{use_case['3']}<br/><i>This app illustrates <b>'{curr_use_case}'</b> use case</i></div>", unsafe_allow_html=True)
174
  st.markdown(f"<div style='color: #9f9f9f; text-align: right'>views:&nbsp;{get_views()}</div>", unsafe_allow_html=True)
175
 
176
 
run.sh ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ streamlit run app.py --server.port 80 "2" "doc_app_examples.json" "doc_app_models.json"
2
+
view_count.txt CHANGED
@@ -1 +1 @@
1
- 23
 
1
+ 120