KwameOO commited on
Commit
8bd8d20
1 Parent(s): c51a483

Tweak the UI labels

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,8 +38,8 @@ def sentiment_analysis(text):
38
 
39
  # ---- Gradio app interface
40
  app = gr.Interface(fn = sentiment_analysis,
41
- inputs = gr.Textbox("Write your text or tweet here..."),
42
- outputs = "label",
43
  title = "Sentiment Analysis of Tweets on COVID-19 Vaccines",
44
  description = "To vaccinate or not? This app analyzes sentiment of text based on tweets tweets about COVID-19 Vaccines using a fine-tuned roBERTA model",
45
  interpretation = "default",
 
38
 
39
  # ---- Gradio app interface
40
  app = gr.Interface(fn = sentiment_analysis,
41
+ inputs = gr.Textbox(label = "Write your text or tweet here..."),
42
+ outputs = gr.Label(label = "Predicted Sentiment..."),
43
  title = "Sentiment Analysis of Tweets on COVID-19 Vaccines",
44
  description = "To vaccinate or not? This app analyzes sentiment of text based on tweets tweets about COVID-19 Vaccines using a fine-tuned roBERTA model",
45
  interpretation = "default",