Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -586,10 +586,10 @@ def analyze_composite(msg1, date1, msg2, date2, msg3, date3, *answers_and_none):
|
|
586 |
for label in predicted_labels:
|
587 |
if label in high:
|
588 |
counts['high'] += 1
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
|
594 |
# Abuse-based escalation
|
595 |
if (counts['high'] >= 2 and counts['moderate'] >= 2):
|
|
|
586 |
for label in predicted_labels:
|
587 |
if label in high:
|
588 |
counts['high'] += 1
|
589 |
+
elif label in moderate:
|
590 |
+
counts['moderate'] += 1
|
591 |
+
elif label in low:
|
592 |
+
counts['low'] += 1
|
593 |
|
594 |
# Abuse-based escalation
|
595 |
if (counts['high'] >= 2 and counts['moderate'] >= 2):
|