Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -148,7 +148,7 @@ def analyze_messages(input_text, risk_flags):
|
|
148 |
and danger_flag_count == 0
|
149 |
and not matched_phrases
|
150 |
):
|
151 |
-
|
152 |
|
153 |
scored_patterns = [
|
154 |
(label, score) for label, score in zip(PATTERN_LABELS, scores[:15]) if label != "non_abusive"
|
|
|
148 |
and danger_flag_count == 0
|
149 |
and not matched_phrases
|
150 |
):
|
151 |
+
return "This message is classified as non-abusive. It appears emotionally supportive and safe."
|
152 |
|
153 |
scored_patterns = [
|
154 |
(label, score) for label, score in zip(PATTERN_LABELS, scores[:15]) if label != "non_abusive"
|