Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,9 @@ HEADERS = {"Authorization": f"Bearer {API_TOKEN}"}
|
|
8 |
|
9 |
def get_sentiment_category(sentiment_label):
|
10 |
sentiment_label = sentiment_label.lower()
|
11 |
-
if "
|
12 |
return "Positive"
|
13 |
-
elif "
|
14 |
return "Negative"
|
15 |
else:
|
16 |
return "Mixed"
|
|
|
8 |
|
9 |
def get_sentiment_category(sentiment_label):
|
10 |
sentiment_label = sentiment_label.lower()
|
11 |
+
if "pos" in sentiment_label:
|
12 |
return "Positive"
|
13 |
+
elif "neg" in sentiment_label:
|
14 |
return "Negative"
|
15 |
else:
|
16 |
return "Mixed"
|