SamanthaStorm commited on
Commit
cd0b54d
·
verified ·
1 Parent(s): cdb869a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- for label in ["control", "threat", "blame shifting"]
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: