Elvan Selvano commited on
Commit
06a9e39
β€’
1 Parent(s): 8ca8479

Rename model

Browse files
Files changed (1) hide show
  1. app.py +1 -10
app.py CHANGED
@@ -8,7 +8,7 @@ st.set_page_config(layout='wide')
8
  @st.cache(allow_output_mutation=True)
9
  def load_model():
10
  """Load pretrained model from SentenceTransformer"""
11
- return SentenceTransformer('all-MiniLM-L6-v2')
12
 
13
  def semantic_search(model, sentence, corpus_embeddings):
14
  """Perform semantic search on the corpus"""
@@ -94,15 +94,6 @@ def main():
94
  st.info(f'Showing results for {job_title}')
95
  result = get_similarity_score(model, data, job_title, corpus_embeddings)
96
  result = result[columns]
97
-
98
- # st.download_button(
99
- # "Download Table",
100
- # result.to_csv().encode('utf-8'),
101
- # "result.csv",
102
- # "text/csv",
103
- # key='download-csv'
104
- # )
105
-
106
  show_aggrid_table(result)
107
 
108
  if __name__ == '__main__':
 
8
  @st.cache(allow_output_mutation=True)
9
  def load_model():
10
  """Load pretrained model from SentenceTransformer"""
11
+ return SentenceTransformer('minilm_sbert')
12
 
13
  def semantic_search(model, sentence, corpus_embeddings):
14
  """Perform semantic search on the corpus"""
 
94
  st.info(f'Showing results for {job_title}')
95
  result = get_similarity_score(model, data, job_title, corpus_embeddings)
96
  result = result[columns]
 
 
 
 
 
 
 
 
 
97
  show_aggrid_table(result)
98
 
99
  if __name__ == '__main__':