Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,6 @@ def analyze_messages(input_text):
|
|
94 |
"It looks for specific abusive patterns that increase the likelihood of severe harm. "
|
95 |
f"The messages just analyzed contain at least {triggered_flags_count} critical flags."
|
96 |
)
|
97 |
-
)
|
98 |
|
99 |
# Return both a text summary and a JSON-like dict of scores per label
|
100 |
return result, {"scores": dict(zip(LABELS, scores.tolist))}
|
|
|
94 |
"It looks for specific abusive patterns that increase the likelihood of severe harm. "
|
95 |
f"The messages just analyzed contain at least {triggered_flags_count} critical flags."
|
96 |
)
|
|
|
97 |
|
98 |
# Return both a text summary and a JSON-like dict of scores per label
|
99 |
return result, {"scores": dict(zip(LABELS, scores.tolist))}
|