Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 = "
|
23 |
-
kp_cosine_sapbert_checkpoint = "
|
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")
|