Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -472,8 +472,8 @@ def analyze_single_message(text, thresholds):
|
|
472 |
# Apply thresholds
|
473 |
threshold_labels = []
|
474 |
if explicit_abuse:
|
475 |
-
|
476 |
-
|
477 |
|
478 |
for label, score in sorted_predictions:
|
479 |
if label == "nonabusive":
|
|
|
472 |
# Apply thresholds
|
473 |
threshold_labels = []
|
474 |
if explicit_abuse:
|
475 |
+
threshold_labels.append("insults")
|
476 |
+
logger.debug("\nForced inclusion of 'insults' due to explicit abuse")
|
477 |
|
478 |
for label, score in sorted_predictions:
|
479 |
if label == "nonabusive":
|