pritamdeka commited on
Commit
b70d541
·
1 Parent(s): 4eb0fdc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -143,12 +143,12 @@ igen=gr.Interface(keyphrase_generator,
143
  type="value",
144
  default='sentence-transformers/all-mpnet-base-v1',
145
  label="Select any SBERT model for keyphrases from the list below"),
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 sentences and then extracts the keyphrases"
152
  "\t from those sentences using <a href = https://allenai.github.io/scispacy/>scispaCy</a> and SBERT."
153
  "\t The list of SBERT models provided can be found in <a href=www.sbert.net/docs/pretrained_models.html>SBERT Pre-trained models hub</a>."
154
  "\t The default model names are provided which can be changed from the list of models available. "
 
143
  type="value",
144
  default='sentence-transformers/all-mpnet-base-v1',
145
  label="Select any SBERT model for keyphrases from the list below"),
146
+ gr.inputs.Slider(minimum=5, maximum=20, 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."
153
  "\t The list of SBERT models provided can be found in <a href=www.sbert.net/docs/pretrained_models.html>SBERT Pre-trained models hub</a>."
154
  "\t The default model names are provided which can be changed from the list of models available. "