Spaces:
Runtime error
Runtime error
Commit
·
0fc2865
1
Parent(s):
53c2635
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,13 +34,16 @@ def ner(text):
|
|
| 34 |
|
| 35 |
sentiment_demo = gr.Interface(
|
| 36 |
fn=sentiment_analysis,
|
|
|
|
| 37 |
outputs="label",
|
| 38 |
-
interpretation="default"
|
|
|
|
| 39 |
|
| 40 |
-
ner_demo = gr.Interface(
|
| 41 |
-
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
if __name__ == "__main__":
|
| 44 |
-
Series(sentiment_demo, ner_demo
|
| 45 |
-
inputs=gr.Textbox(placeholder="Enter sentence here..."),
|
| 46 |
-
examples=[examples]).launch()
|
|
|
|
| 34 |
|
| 35 |
sentiment_demo = gr.Interface(
|
| 36 |
fn=sentiment_analysis,
|
| 37 |
+
inputs=gr.Textbox(placeholder="Enter sentence here...")
|
| 38 |
outputs="label",
|
| 39 |
+
interpretation="default",
|
| 40 |
+
examples=[examples])
|
| 41 |
|
| 42 |
+
ner_demo = gr.Interface(
|
| 43 |
+
ner,
|
| 44 |
+
gr.Textbox(placeholder="Enter sentence here...")
|
| 45 |
+
gr.HighlightedText(),
|
| 46 |
+
examples=[examples])
|
| 47 |
|
| 48 |
if __name__ == "__main__":
|
| 49 |
+
Series(sentiment_demo, ner_demo).launch()
|
|
|
|
|
|