Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def predict_sentiment(text):
|
|
| 36 |
interface = gr.Interface(
|
| 37 |
fn=predict_sentiment,
|
| 38 |
inputs=gr.Textbox(lines=3, placeholder="Enter text..."),
|
| 39 |
-
outputs=gr.
|
| 40 |
title="Fine-Tuned Sentiment Analysis",
|
| 41 |
description="Enter a sentence to analyze its sentiment (Positive, Neutral, Negative).",
|
| 42 |
)
|
|
|
|
| 36 |
interface = gr.Interface(
|
| 37 |
fn=predict_sentiment,
|
| 38 |
inputs=gr.Textbox(lines=3, placeholder="Enter text..."),
|
| 39 |
+
outputs=gr.Label(num_top_classes=3), # Display without JSON
|
| 40 |
title="Fine-Tuned Sentiment Analysis",
|
| 41 |
description="Enter a sentence to analyze its sentiment (Positive, Neutral, Negative).",
|
| 42 |
)
|