SamanthaStorm commited on
Commit
07cd99a
·
verified ·
1 Parent(s): ee32b37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -265,9 +265,9 @@ def analyze_single_message(text, thresholds):
265
 
266
  abuse_score_raw = (weighted_total / weight_sum) * 100
267
  if weapon_flag:
268
- abuse_score_raw = min(abuse_score_raw + 25, 100) # boost intensity
269
  if weapon_flag and stage < 2:
270
- stage = 2
271
 
272
  if "threat" in threshold_labels or "control" in threshold_labels or "insults" in threshold_labels:
273
  abuse_score = min(abuse_score_raw, 100)
 
265
 
266
  abuse_score_raw = (weighted_total / weight_sum) * 100
267
  if weapon_flag:
268
+ abuse_score_raw = min(abuse_score_raw + 25, 100) # boost intensity
269
  if weapon_flag and stage < 2:
270
+ stage = 2
271
 
272
  if "threat" in threshold_labels or "control" in threshold_labels or "insults" in threshold_labels:
273
  abuse_score = min(abuse_score_raw, 100)