Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
269 |
if weapon_flag and stage < 2:
|
270 |
-
|
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)
|