Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,11 +37,14 @@ def sentiment_analysis(text):
|
|
37 |
return scores
|
38 |
|
39 |
demo = gr.Interface(
|
|
|
|
|
|
|
40 |
fn=sentiment_analysis,
|
41 |
-
inputs=gr.Textbox(placeholder="Write
|
42 |
outputs="label",
|
43 |
interpretation="default",
|
44 |
-
examples=[["It is very
|
45 |
|
46 |
demo.launch()
|
47 |
|
|
|
37 |
return scores
|
38 |
|
39 |
demo = gr.Interface(
|
40 |
+
# Setting Titles for App
|
41 |
+
gr.Markdown("<h2 style='text-align: center;'> Sentiment Analysis App </h2> ", unsafe_allow_html=True)
|
42 |
+
|
43 |
fn=sentiment_analysis,
|
44 |
+
inputs=gr.Textbox(placeholder="Copy and paste/Write a tweet here..."),
|
45 |
outputs="label",
|
46 |
interpretation="default",
|
47 |
+
examples=[["It is very good to vaccinate your child!"]])
|
48 |
|
49 |
demo.launch()
|
50 |
|