vives commited on
Commit
aed5b51
1 Parent(s): 5ec5826

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -19,8 +19,8 @@ kp_cosine_finbert_checkpoint = "cosine_kp_finance.pickle"
19
 
20
  tokenizer_sapbert = AutoTokenizer.from_pretrained("cambridgeltl/SapBERT-from-PubMedBERT-fulltext")
21
  model_sapbert = AutoModel.from_pretrained("cambridgeltl/SapBERT-from-PubMedBERT-fulltext", output_hidden_states=True)
22
- kp_dict_sapbert_checkpoint = "kp_dict_sapbert.pickle"
23
- kp_cosine_sapbert_checkpoint = "cosine_kp_sapbert.pickle"
24
 
25
  text = st.text_input("Enter word or key-phrase")
26
  exclude_words = st.radio("exclude_words",[True,False], help="Exclude results that contain any words in the query")
 
19
 
20
  tokenizer_sapbert = AutoTokenizer.from_pretrained("cambridgeltl/SapBERT-from-PubMedBERT-fulltext")
21
  model_sapbert = AutoModel.from_pretrained("cambridgeltl/SapBERT-from-PubMedBERT-fulltext", output_hidden_states=True)
22
+ kp_dict_sapbert_checkpoint = "kp_dict_medical.pickle"
23
+ kp_cosine_sapbert_checkpoint = "cosine_kp_medical.pickle"
24
 
25
  text = st.text_input("Enter word or key-phrase")
26
  exclude_words = st.radio("exclude_words",[True,False], help="Exclude results that contain any words in the query")