SamanthaStorm commited on
Commit
a01d2f8
·
verified ·
1 Parent(s): 0ddf13e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -473,7 +473,7 @@ def analyze_single_message(text, thresholds):
473
  )
474
 
475
  top_patterns = sorted(
476
- [(label, score) for label, score in zip(LABELS, scores)],
477
  key=lambda x: x[1],
478
  reverse=True
479
  )[:2]
 
473
  )
474
 
475
  top_patterns = sorted(
476
+ [(label, score) for label, score in zip(LABELS, scores) if score > adjusted_thresholds[label]],
477
  key=lambda x: x[1],
478
  reverse=True
479
  )[:2]