Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -67,7 +67,7 @@ def analyze_messages(input_text):
|
|
67 |
pattern_count = 0
|
68 |
danger_flag_count = 0
|
69 |
|
70 |
-
|
71 |
if score > THRESHOLDS[label]:
|
72 |
if i < 14:
|
73 |
pattern_count += 1
|
|
|
67 |
pattern_count = 0
|
68 |
danger_flag_count = 0
|
69 |
|
70 |
+
for i, (label, score) in enumerate(zip(LABELS, scores)):
|
71 |
if score > THRESHOLDS[label]:
|
72 |
if i < 14:
|
73 |
pattern_count += 1
|