Spaces:
Runtime error
Runtime error
Updated app.py
Browse files
app.py
CHANGED
@@ -65,12 +65,13 @@ def sentiment_analysis(model_type, text):
|
|
65 |
|
66 |
|
67 |
model_type = gr.Dropdown(choices=['distilbert', 'roberta'], label='Select model type', allow_custom_value=False, value='roberta')
|
68 |
-
|
|
|
69 |
#Gradio app interface
|
70 |
demo = gr.Interface(fn = sentiment_analysis,
|
71 |
inputs = [model_type, gr.TextArea("Write your text or tweet here", label="Analyze your COVID-19 tweets" )],
|
72 |
outputs = ["label"],
|
73 |
-
title = "
|
74 |
description = "COVID-19 Tweets Analyzer",
|
75 |
interpretation = "default",
|
76 |
examples = [['roberta', "Being vaccinated is actually awesome :)"]]
|
|
|
65 |
|
66 |
|
67 |
model_type = gr.Dropdown(choices=['distilbert', 'roberta'], label='Select model type', allow_custom_value=False, value='roberta')
|
68 |
+
|
69 |
+
|
70 |
#Gradio app interface
|
71 |
demo = gr.Interface(fn = sentiment_analysis,
|
72 |
inputs = [model_type, gr.TextArea("Write your text or tweet here", label="Analyze your COVID-19 tweets" )],
|
73 |
outputs = ["label"],
|
74 |
+
title = "COVID-19 Vaccine Tweet Analyzer App",
|
75 |
description = "COVID-19 Tweets Analyzer",
|
76 |
interpretation = "default",
|
77 |
examples = [['roberta', "Being vaccinated is actually awesome :)"]]
|