Commit
·
d278b23
1
Parent(s):
b4a2a0b
fn8
Browse filesdefault label set to neutral
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',
|
41 |
font_size=30, font_family='Arial',
|
42 |
background_color='#f8f8f8',
|
43 |
-
color='black'
|
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 |
|