Tweak the UI labels
Browse files
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 =
|
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",
|