Sambhavnoobcoder commited on
Commit
d278b23
·
1 Parent(s): b4a2a0b

default label set to neutral

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,10 +37,10 @@ def predict_sentiment(text):
37
  iface = gr.Interface(
38
  fn=predict_sentiment,
39
  inputs=gr.inputs.Textbox(label='Enter text here'),
40
- outputs=gr.outputs.Label(label='Sentiment', default='Neutral',
41
  font_size=30, font_family='Arial',
42
  background_color='#f8f8f8',
43
- color='black', value=None),
44
  title='SENTIMENT ANALYSIS'
45
  )
46
 
 
37
  iface = gr.Interface(
38
  fn=predict_sentiment,
39
  inputs=gr.inputs.Textbox(label='Enter text here'),
40
+ outputs=gr.outputs.Label(label='Sentiment', value='Neutral',
41
  font_size=30, font_family='Arial',
42
  background_color='#f8f8f8',
43
+ color='black'),
44
  title='SENTIMENT ANALYSIS'
45
  )
46