Spaces:
Running
Running
Commit
·
55792f9
1
Parent(s):
3c1ef56
modified return sentiment interpolation
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def predict_sentiment(text):
|
|
28 |
interpretation = "negative"
|
29 |
else:
|
30 |
interpretation = "neutral"
|
31 |
-
return
|
32 |
|
33 |
iface = gr.Interface(fn=predict_sentiment,
|
34 |
inputs=gr.Textbox(label="Enter financial sentence"),
|
|
|
28 |
interpretation = "negative"
|
29 |
else:
|
30 |
interpretation = "neutral"
|
31 |
+
return round(score, 4), interpretation
|
32 |
|
33 |
iface = gr.Interface(fn=predict_sentiment,
|
34 |
inputs=gr.Textbox(label="Enter financial sentence"),
|