pritamdeka
commited on
Commit
β’
db27bca
1
Parent(s):
bbf9f39
Update app.py
Browse files
app.py
CHANGED
@@ -312,7 +312,7 @@ igen_pubmed = gr.Interface(keyphrase_generator,
|
|
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.
|
316 |
#outputs=gr.outputs.File(label=None),
|
317 |
theme="peach", layout="horizontal",
|
318 |
title="PubMed Abstract Retriever", description="Retrieves relevant PubMed abstracts for an online article which can be used as further references. The output is in the form of JSON with <b><i>Title</i></b> and <b><i>Abstract</i></b> as the fields of the JSON output. Please note that it may take sometime for the models to load. Examples are provided below for demo purposes. Choose any one example to see the results. The models can be changed to see different results. ",
|
|
|
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.components.JSON(label="Title and Abstracts"),
|
316 |
#outputs=gr.outputs.File(label=None),
|
317 |
theme="peach", layout="horizontal",
|
318 |
title="PubMed Abstract Retriever", description="Retrieves relevant PubMed abstracts for an online article which can be used as further references. The output is in the form of JSON with <b><i>Title</i></b> and <b><i>Abstract</i></b> as the fields of the JSON output. Please note that it may take sometime for the models to load. Examples are provided below for demo purposes. Choose any one example to see the results. The models can be changed to see different results. ",
|