Abhishek0323 commited on
Commit
fdc936d
1 Parent(s): 1d72653

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -31,10 +31,10 @@ def custom_theme():
31
  # Create Gradio interface
32
  iface = gr.Interface(fn=predict_sentiment,
33
  inputs=gr.Textbox(lines=2, placeholder="Type your sentence here..."),
34
- outputs=gr.outputs.Label(num_top_classes=3),
35
  theme=custom_theme(),
36
  title="Sentiment Analysis",
37
- description="Analyze the sentiment of your text.",
38
  article="<p style='text-align: center'>Enter a sentence to get its sentiment. The model categorizes sentiments into Negative, Neutral, and Positive.</p>")
39
 
40
  if __name__ == "__main__":
 
31
  # Create Gradio interface
32
  iface = gr.Interface(fn=predict_sentiment,
33
  inputs=gr.Textbox(lines=2, placeholder="Type your sentence here..."),
34
+ outputs=gr.Label(),
35
  theme=custom_theme(),
36
  title="Sentiment Analysis",
37
+ description="Analyze the sentiment of your text. Powered by CardiffNLP's RoBERTa model.",
38
  article="<p style='text-align: center'>Enter a sentence to get its sentiment. The model categorizes sentiments into Negative, Neutral, and Positive.</p>")
39
 
40
  if __name__ == "__main__":