pritamdeka
commited on
Commit
β’
bbf9f39
1
Parent(s):
5d94582
Update app.py
Browse files
app.py
CHANGED
@@ -278,7 +278,7 @@ igen_pubmed = gr.Interface(keyphrase_generator,
|
|
278 |
'sentence-transformers/sentence-t5-large',
|
279 |
'sentence-transformers/sentence-t5-base'],
|
280 |
type="value",
|
281 |
-
|
282 |
label="Select any SBERT model for TextRank from the list below"),
|
283 |
gr.components.Dropdown(choices=['sentence-transformers/paraphrase-mpnet-base-v2',
|
284 |
'sentence-transformers/all-mpnet-base-v1',
|
@@ -295,21 +295,21 @@ igen_pubmed = gr.Interface(keyphrase_generator,
|
|
295 |
'sentence-transformers/paraphrase-MiniLM-L3-v2',
|
296 |
'sentence-transformers/all-MiniLM-L6-v2'],
|
297 |
type="value",
|
298 |
-
|
299 |
label="Select any SBERT model for keyphrases from the list below"),
|
300 |
gr.components.Slider(minimum=5, maximum=20, step=1, default=10, label="Max Keywords"),
|
301 |
gr.components.Dropdown(choices=['cambridgeltl/SapBERT-from-PubMedBERT-fulltext',
|
302 |
'cambridgeltl/SapBERT-from-PubMedBERT-fulltext-mean-token'],
|
303 |
type="value",
|
304 |
-
|
305 |
label="Select any SapBERT model for clustering from the list below"),
|
306 |
-
gr.components.Slider(minimum=5, maximum=15, step=1,
|
307 |
gr.components.Dropdown(choices=['pritamdeka/S-Bluebert-snli-multinli-stsb',
|
308 |
'pritamdeka/S-BioBert-snli-multinli-stsb',
|
309 |
'pritamdeka/S-Biomed-Roberta-snli-multinli-stsb',
|
310 |
'sentence-transformers/all-mpnet-base-v2'],
|
311 |
type="value",
|
312 |
-
|
313 |
label="Select any SBERT model for abstracts from the list below")],
|
314 |
#outputs=gr.outputs.Dataframe(type="auto", label="Retrieved Results from PubMed",max_cols=2, overflow_row_behaviour="paginate"),
|
315 |
outputs=gr.outputs.JSON(label="Title and Abstracts"),
|
|
|
278 |
'sentence-transformers/sentence-t5-large',
|
279 |
'sentence-transformers/sentence-t5-base'],
|
280 |
type="value",
|
281 |
+
value='sentence-transformers/stsb-roberta-base-v2',
|
282 |
label="Select any SBERT model for TextRank from the list below"),
|
283 |
gr.components.Dropdown(choices=['sentence-transformers/paraphrase-mpnet-base-v2',
|
284 |
'sentence-transformers/all-mpnet-base-v1',
|
|
|
295 |
'sentence-transformers/paraphrase-MiniLM-L3-v2',
|
296 |
'sentence-transformers/all-MiniLM-L6-v2'],
|
297 |
type="value",
|
298 |
+
value='sentence-transformers/all-mpnet-base-v1',
|
299 |
label="Select any SBERT model for keyphrases from the list below"),
|
300 |
gr.components.Slider(minimum=5, maximum=20, step=1, default=10, label="Max Keywords"),
|
301 |
gr.components.Dropdown(choices=['cambridgeltl/SapBERT-from-PubMedBERT-fulltext',
|
302 |
'cambridgeltl/SapBERT-from-PubMedBERT-fulltext-mean-token'],
|
303 |
type="value",
|
304 |
+
value='cambridgeltl/SapBERT-from-PubMedBERT-fulltext',
|
305 |
label="Select any SapBERT model for clustering from the list below"),
|
306 |
+
gr.components.Slider(minimum=5, maximum=15, step=1, value=10, label="PubMed Max Abstracts"),
|
307 |
gr.components.Dropdown(choices=['pritamdeka/S-Bluebert-snli-multinli-stsb',
|
308 |
'pritamdeka/S-BioBert-snli-multinli-stsb',
|
309 |
'pritamdeka/S-Biomed-Roberta-snli-multinli-stsb',
|
310 |
'sentence-transformers/all-mpnet-base-v2'],
|
311 |
type="value",
|
312 |
+
value='sentence-transformers/all-mpnet-base-v2',
|
313 |
label="Select any SBERT model for abstracts from the list below")],
|
314 |
#outputs=gr.outputs.Dataframe(type="auto", label="Retrieved Results from PubMed",max_cols=2, overflow_row_behaviour="paginate"),
|
315 |
outputs=gr.outputs.JSON(label="Title and Abstracts"),
|