SamanthaStorm commited on
Commit
40e9611
·
verified ·
1 Parent(s): 9f9c218

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -472,8 +472,8 @@ def analyze_single_message(text, thresholds):
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":
 
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":