Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -13,11 +13,6 @@ gradio_app = gr.Interface(
|
|
13 |
predict,
|
14 |
inputs=gr.Textbox(label="Write a text"),
|
15 |
outputs=gr.Label(label="Predicted Sentiment Probabilities"),
|
16 |
-
components=[
|
17 |
-
gr.Label(label="Neutral: {:.2f}".format(predictions[0]["score"][0])),
|
18 |
-
gr.Label(label="Positive: {:.2f}".format(predictions[0]["score"][1])),
|
19 |
-
gr.Label(label="Negative: {:.2f}".format(predictions[0]["score"][2])),
|
20 |
-
],
|
21 |
title="Financial Sentiment Analysis",
|
22 |
)
|
23 |
|
|
|
13 |
predict,
|
14 |
inputs=gr.Textbox(label="Write a text"),
|
15 |
outputs=gr.Label(label="Predicted Sentiment Probabilities"),
|
|
|
|
|
|
|
|
|
|
|
16 |
title="Financial Sentiment Analysis",
|
17 |
)
|
18 |
|