Jurk06 commited on
Commit
b8d9c2f
·
verified ·
1 Parent(s): de73aad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
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="label",
17
- examples=[["This is wonderful!"]])
 
 
 
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()