SamanthaStorm commited on
Commit
5ee6178
·
verified ·
1 Parent(s): 6e056de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -94,7 +94,7 @@ PATTERN_WEIGHTS = {
94
  "projection": 1.2,
95
  "recovery": 1.1,
96
  "coercion": 1.3,
97
- "aggression": 1.6,
98
  "nonabusive": 0.1,
99
  "deflection": 0.4
100
  }
@@ -457,7 +457,8 @@ def compute_abuse_score(matched_scores, sentiment):
457
  "threat": 70,
458
  "control": 40,
459
  "gaslighting": 30,
460
- "insults": 25
 
461
  }
462
  floor = max(FLOORS.get(label, 0) for label, _, _ in matched_scores)
463
  adjusted_score = max(scaled_score, floor)
 
94
  "projection": 1.2,
95
  "recovery": 1.1,
96
  "coercion": 1.3,
97
+ "aggression": 2.2,
98
  "nonabusive": 0.1,
99
  "deflection": 0.4
100
  }
 
457
  "threat": 70,
458
  "control": 40,
459
  "gaslighting": 30,
460
+ "insults": 25,
461
+ "aggression": 40
462
  }
463
  floor = max(FLOORS.get(label, 0) for label, _, _ in matched_scores)
464
  adjusted_score = max(scaled_score, floor)