Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,10 +27,10 @@ def classify_sentiment(text):
|
|
| 27 |
return sentiment_label, "sentiment_probabilities.png"
|
| 28 |
|
| 29 |
# Input and output components for the interface
|
| 30 |
-
inputs = gr.
|
| 31 |
outputs = [
|
| 32 |
-
gr.
|
| 33 |
-
gr.
|
| 34 |
]
|
| 35 |
|
| 36 |
# Create the Gradio interface
|
|
|
|
| 27 |
return sentiment_label, "sentiment_probabilities.png"
|
| 28 |
|
| 29 |
# Input and output components for the interface
|
| 30 |
+
inputs = gr.Textbox(lines=10, label="Enter the text you want to analyze:")
|
| 31 |
outputs = [
|
| 32 |
+
gr.Textbox(label="Sentiment Prediction"),
|
| 33 |
+
gr.Image(label="Sentiment Probability Distribution")
|
| 34 |
]
|
| 35 |
|
| 36 |
# Create the Gradio interface
|