SamanthaStorm commited on
Commit
e8636b3
·
verified ·
1 Parent(s): 48d6d81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -474,7 +474,7 @@ def analyze_single_message(text, thresholds):
474
  len(threshold_labels) == 1 and "insults" in threshold_labels
475
  and emotion_profile.get("neutral", 0) > 0.85
476
  ):
477
- abuse_score_raw = min(abuse_score_raw, 40)
478
 
479
  # Abuse score
480
  abuse_score_raw = compute_abuse_score(matched_scores, sentiment)
 
474
  len(threshold_labels) == 1 and "insults" in threshold_labels
475
  and emotion_profile.get("neutral", 0) > 0.85
476
  ):
477
+ abuse_score_raw = min(abuse_score_raw, 40)
478
 
479
  # Abuse score
480
  abuse_score_raw = compute_abuse_score(matched_scores, sentiment)