ktr008 commited on
Commit
1c1509c
·
verified ·
1 Parent(s): 5c6e51f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.JSON(),
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
  )