Sergiu2404 commited on
Commit
55792f9
·
1 Parent(s): 3c1ef56

modified return sentiment interpolation

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def predict_sentiment(text):
28
  interpretation = "negative"
29
  else:
30
  interpretation = "neutral"
31
- return {"score": round(score, 4), "interpretation": interpretation}
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"),