Spaces:
Build error
Build error
Commit
·
44d2b03
1
Parent(s):
eeb3ca3
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,7 +19,7 @@ def sentiment_gradio(input):
|
|
| 19 |
res = {'Positive': pos_score, 'Negative': neg_score}
|
| 20 |
return res
|
| 21 |
|
| 22 |
-
sentiment_analysis_interface = gr.Interface(
|
| 23 |
inputs="text",
|
| 24 |
outputs= gr.outputs.Label(num_top_classes=2),
|
| 25 |
interpretation="default")
|
|
|
|
| 19 |
res = {'Positive': pos_score, 'Negative': neg_score}
|
| 20 |
return res
|
| 21 |
|
| 22 |
+
sentiment_analysis_interface = gr.Interface(fn = sentiment_gradio,
|
| 23 |
inputs="text",
|
| 24 |
outputs= gr.outputs.Label(num_top_classes=2),
|
| 25 |
interpretation="default")
|