Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -351,7 +351,7 @@ def analyze_single_message(text, thresholds):
|
|
351 |
scores[label] > THRESHOLDS[label]
|
352 |
for label in ["control", "threat", "blame shifting"]
|
353 |
):
|
354 |
-
|
355 |
else:
|
356 |
sentiment = "undermining" if sentiment_score > 0.25 else "supportive"
|
357 |
|
|
|
351 |
scores[label] > THRESHOLDS[label]
|
352 |
for label in ["control", "threat", "blame shifting"]
|
353 |
):
|
354 |
+
sentiment = "undermining"
|
355 |
else:
|
356 |
sentiment = "undermining" if sentiment_score > 0.25 else "supportive"
|
357 |
|