FKBaffour commited on
Commit
6814519
1 Parent(s): fc962f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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 your tweet here..."),
42
  outputs="label",
43
  interpretation="default",
44
- examples=[["It is very bad to vaccinate your child!"]])
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