Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,9 +11,12 @@ def sentiment_analysis(text):
|
|
| 11 |
return scores
|
| 12 |
|
| 13 |
demo = gr.Interface(
|
| 14 |
-
fn=sentiment_analysis,
|
| 15 |
-
inputs=gr.Textbox(placeholder="Enter a positive or negative sentence here..."),
|
| 16 |
-
outputs=
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
-
demo.launch()
|
|
|
|
| 11 |
return scores
|
| 12 |
|
| 13 |
demo = gr.Interface(
|
| 14 |
+
fn=sentiment_analysis,
|
| 15 |
+
inputs=gr.Textbox(lines=5, placeholder="Enter a positive or negative sentence here..."),
|
| 16 |
+
outputs=gr.JSON(),
|
| 17 |
+
title="Sentiment Analysis",
|
| 18 |
+
description="Enter a sentence to analyze its sentiment. The model will return the sentiment scores for positive, negative, and neutral tones.",
|
| 19 |
+
examples=[["This is wonderful!"], ["I hate this!"], ["It's okay, not bad."]]
|
| 20 |
+
)
|
| 21 |
|
| 22 |
+
demo.launch()
|