Spaces:
Runtime error
Runtime error
Commit
·
a841321
1
Parent(s):
0ba7a71
Update app.py
Browse files
app.py
CHANGED
|
@@ -143,7 +143,7 @@ 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=
|
| 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.",
|
|
@@ -152,6 +152,6 @@ igen=gr.Interface(keyphrase_generator,
|
|
| 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. "
|
| 155 |
-
"\t The value of output keyphrases can be changed. The default value is 10, minimum is 5 and a maximum value of
|
| 156 |
|
| 157 |
igen.launch(share=True)
|
|
|
|
| 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.",
|
|
|
|
| 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. "
|
| 155 |
+
"\t The value of output keyphrases can be changed. The default value is 10, minimum is 5 and a maximum value of 30.")
|
| 156 |
|
| 157 |
igen.launch(share=True)
|