taskswithcode commited on
Commit
fb73c83
1 Parent(s): 82038d9
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -59,7 +59,7 @@ def get_views(action):
59
 
60
  def construct_model_info_for_display(model_names):
61
  options_arr = []
62
- markdown_str = f"<div style=\"font-size:16px; color: #2f2f2f; text-align: left\"><br/><b>Models evaluated ({len(model_names)})</b><br/><i>These are either state-of-the-art or the most downloaded models on Huggingface</i></div>"
63
  markdown_str += f"<div style=\"font-size:2px; color: #2f2f2f; text-align: left\"><br/></div>"
64
  for node in model_names:
65
  options_arr .append(node["name"])
@@ -220,8 +220,8 @@ def app_main(app_mode,example_files,model_name_files):
220
  selected_model = st.selectbox(label=selection_label,
221
  options = options_arr, index=0, key = "twc_model")
222
  st.write("")
223
- custom_model_selection = st.text_input("Model not listed above? Type any Huggingface semantic search model name ", "",key="custom_model")
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)
 
59
 
60
  def construct_model_info_for_display(model_names):
61
  options_arr = []
62
+ markdown_str = f"<div style=\"font-size:16px; color: #2f2f2f; text-align: left\"><br/><b>Models evaluated ({len(model_names)})</b><br/><i>These are either state-of-the-art or the most downloaded models on Hugging Face</i></div>"
63
  markdown_str += f"<div style=\"font-size:2px; color: #2f2f2f; text-align: left\"><br/></div>"
64
  for node in model_names:
65
  options_arr .append(node["name"])
 
220
  selected_model = st.selectbox(label=selection_label,
221
  options = options_arr, index=0, key = "twc_model")
222
  st.write("")
223
+ custom_model_selection = st.text_input("Model not listed above? Type any Hugging Face semantic search model name ", "",key="custom_model")
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 Hugging Face 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)