Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -471,7 +471,7 @@ def analyze_single_message(text, thresholds):
|
|
471 |
|
472 |
# Apply thresholds
|
473 |
threshold_labels = []
|
474 |
-
|
475 |
threshold_labels.append("insults")
|
476 |
logger.debug("\nForced inclusion of 'insults' due to explicit abuse")
|
477 |
|
|
|
471 |
|
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 |
|