Spaces:
Runtime error
Runtime error
Commit
·
7221031
1
Parent(s):
3350568
Update app.py
Browse files
app.py
CHANGED
|
@@ -148,6 +148,16 @@ igen=gr.Interface(keyphrase_generator,
|
|
| 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',
|
|
@@ -156,17 +166,8 @@ igen=gr.Interface(keyphrase_generator,
|
|
| 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."
|
|
|
|
| 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.cancer.news/2021-12-22-mrna-vaccines-weaken-immune-system-cause-cancer.html",
|
| 152 |
+
'sentence-transformers/all-mpnet-base-v1',
|
| 153 |
+
'sentence-transformers/paraphrase-MiniLM-L12-v2',
|
| 154 |
+
10],
|
| 155 |
+
|
| 156 |
+
["https://www.cancer.news/2022-02-04-doctors-testifying-covid-vaccines-causing-cancer-aids.html#",
|
| 157 |
+
'sentence-transformers/all-mpnet-base-v1',
|
| 158 |
+
'sentence-transformers/all-mpnet-base-v1',
|
| 159 |
+
12],
|
| 160 |
+
|
| 161 |
["https://www.medicalnewstoday.com/articles/alzheimers-addressing-sleep-disturbance-may-alleviate-symptoms",
|
| 162 |
'pritamdeka/S-Biomed-Roberta-snli-multinli-stsb',
|
| 163 |
'sentence-transformers/all-mpnet-base-v1',
|
|
|
|
| 166 |
["https://www.medicalnewstoday.com/articles/omicron-what-do-we-know-about-the-stealth-variant",
|
| 167 |
'pritamdeka/S-Biomed-Roberta-snli-multinli-stsb',
|
| 168 |
'sentence-transformers/all-mpnet-base-v1',
|
| 169 |
+
15]
|
| 170 |
+
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 171 |
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>."
|
| 172 |
"\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"
|
| 173 |
"\t from those sentences using <a href = https://allenai.github.io/scispacy/>scispaCy</a> and SBERT."
|