Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -349,7 +349,7 @@ def analyze_single_message(text, thresholds):
|
|
349 |
# Override if neutral tone masks abusive content
|
350 |
if emotion_profile.get("neutral", 0) > 0.85 and any(
|
351 |
scores[label] > THRESHOLDS[label]
|
352 |
-
|
353 |
):
|
354 |
sentiment = "undermining"
|
355 |
else:
|
|
|
349 |
# Override if neutral tone masks abusive content
|
350 |
if emotion_profile.get("neutral", 0) > 0.85 and any(
|
351 |
scores[label] > THRESHOLDS[label]
|
352 |
+
for label in ["control", "threat", "blame shifting"]
|
353 |
):
|
354 |
sentiment = "undermining"
|
355 |
else:
|