Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ def analyze(text):
|
|
72 |
f"Prediction: {sentiment_label}\n\n"
|
73 |
f"Sentiment Scores:\n"
|
74 |
f"Positive: {pos_prob:.2f}\n"
|
75 |
-
f"Neutral: {1 - abs(pos_prob - neg_prob):.2f}
|
76 |
f"Negative: {neg_prob:.2f}"
|
77 |
)
|
78 |
|
|
|
72 |
f"Prediction: {sentiment_label}\n\n"
|
73 |
f"Sentiment Scores:\n"
|
74 |
f"Positive: {pos_prob:.2f}\n"
|
75 |
+
f"Neutral: {1 - abs(pos_prob - neg_prob):.2f} \n"
|
76 |
f"Negative: {neg_prob:.2f}"
|
77 |
)
|
78 |
|