Commit
•
801ac9f
1
Parent(s):
4352d94
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ def split_char(text):
|
|
5 |
return " ".join(list(text))
|
6 |
|
7 |
from spacy.lang.en import English
|
8 |
-
def make_predictions(
|
9 |
class_names=['BACKGROUND','CONCLUSIONS','METHODS','OBJECTIVE','RESULTS']
|
10 |
# setup English sentence parser
|
11 |
nlp = English()
|
@@ -68,5 +68,5 @@ def make_predictions(Your_Abstract):
|
|
68 |
#summary=f"{predicted_classes[i]}: {line}"
|
69 |
return summary
|
70 |
|
71 |
-
demo = gr.Interface(fn=make_predictions,inputs=gr.Textbox(lines=2, placeholder="Abstract Here..."),outputs="text")
|
72 |
demo.launch(debug=True, inline=True)
|
|
|
5 |
return " ".join(list(text))
|
6 |
|
7 |
from spacy.lang.en import English
|
8 |
+
def make_predictions(Input):
|
9 |
class_names=['BACKGROUND','CONCLUSIONS','METHODS','OBJECTIVE','RESULTS']
|
10 |
# setup English sentence parser
|
11 |
nlp = English()
|
|
|
68 |
#summary=f"{predicted_classes[i]}: {line}"
|
69 |
return summary
|
70 |
|
71 |
+
demo = gr.Interface(fn=make_predictions,inputs=gr.Textbox(lines=2, placeholder="Enter Abstract Here..."),outputs="text")
|
72 |
demo.launch(debug=True, inline=True)
|