SamanthaStorm commited on
Commit
97be658
·
verified ·
1 Parent(s): d754ddb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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
- 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"
 
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"