SamanthaStorm commited on
Commit
50c26ca
·
verified ·
1 Parent(s): 13fdfd0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- 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):
 
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):