pritamdeka commited on
Commit
bd5da1e
·
1 Parent(s): a841321

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -1
app.py CHANGED
@@ -146,7 +146,27 @@ igen=gr.Interface(keyphrase_generator,
146
  gr.inputs.Slider(minimum=5, maximum=30, step=1, default=10, label="Max Keywords")],
147
  outputs=gr.outputs.Textbox(type="auto", label="Output"), theme="peach",
148
  title="Health Article Keyphrase Generator",
149
- description="Generates the keyphrases from an online health article which best describes the article.",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
150
  article= "The work is based on a part of the paper provided <a href=https://dl.acm.org/doi/10.1145/3487664.3487701>here</a>."
151
  "\t It uses the TextRank algorithm with <a href=https://www.sbert.net/>SBERT</a> to first find the top ranked sentences and then extracts the keyphrases"
152
  "\t from those sentences using <a href = https://allenai.github.io/scispacy/>scispaCy</a> and SBERT."
 
146
  gr.inputs.Slider(minimum=5, maximum=30, step=1, default=10, label="Max Keywords")],
147
  outputs=gr.outputs.Textbox(type="auto", label="Output"), theme="peach",
148
  title="Health Article Keyphrase Generator",
149
+ description="Generates the keyphrases from an online health article which best describes the article. Examples are provided below for demo purposes. Choose any one example to see the results. ",
150
+ examples=[
151
+ ["https://www.medicalnewstoday.com/articles/alzheimers-addressing-sleep-disturbance-may-alleviate-symptoms",
152
+ 'pritamdeka/S-Biomed-Roberta-snli-multinli-stsb',
153
+ 'sentence-transformers/all-mpnet-base-v1',
154
+ 10],
155
+
156
+ ["https://www.medicalnewstoday.com/articles/omicron-what-do-we-know-about-the-stealth-variant",
157
+ 'pritamdeka/S-Biomed-Roberta-snli-multinli-stsb',
158
+ 'sentence-transformers/all-mpnet-base-v1',
159
+ 15],
160
+
161
+ ["https://www.cancer.news/2022-02-04-doctors-testifying-covid-vaccines-causing-cancer-aids.html#",
162
+ 'sentence-transformers/all-mpnet-base-v1',
163
+ 'sentence-transformers/all-mpnet-base-v1',
164
+ 12],
165
+
166
+ ["https://www.cancer.news/2021-12-22-mrna-vaccines-weaken-immune-system-cause-cancer.html",
167
+ 'sentence-transformers/all-mpnet-base-v1',
168
+ 'sentence-transformers/paraphrase-MiniLM-L12-v2',
169
+ 10],
170
  article= "The work is based on a part of the paper provided <a href=https://dl.acm.org/doi/10.1145/3487664.3487701>here</a>."
171
  "\t It uses the TextRank algorithm with <a href=https://www.sbert.net/>SBERT</a> to first find the top ranked sentences and then extracts the keyphrases"
172
  "\t from those sentences using <a href = https://allenai.github.io/scispacy/>scispaCy</a> and SBERT."