Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -181,7 +181,7 @@ def analyze_messages(input_text, risk_flags):
|
|
181 |
|
182 |
if matched_phrases:
|
183 |
result += "\n\nπ¨ Detected High-Risk Phrases:\n"
|
184 |
-
|
185 |
phrase_clean = phrase.replace('"', "'").strip()
|
186 |
result += f"β’ {label.replace('_', ' ').title()}: β{phrase_clean}β\n"
|
187 |
|
|
|
181 |
|
182 |
if matched_phrases:
|
183 |
result += "\n\nπ¨ Detected High-Risk Phrases:\n"
|
184 |
+
for label, phrase in matched_phrases:
|
185 |
phrase_clean = phrase.replace('"', "'").strip()
|
186 |
result += f"β’ {label.replace('_', ' ').title()}: β{phrase_clean}β\n"
|
187 |
|