Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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]
|