SamanthaStorm commited on
Commit
9519fb4
·
verified ·
1 Parent(s): a5f0371

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -162,14 +162,13 @@ def analyze_messages(input_text, risk_flags):
162
  ])
163
 
164
  result = f"Abuse Risk Score: {abuse_level}% – {abuse_description}\n\n"
165
-
166
  if abuse_level >= 15:
167
  result += f"Most Likely Patterns:\n{top_pattern_explanations}\n\n"
168
 
169
- f"⚠️ Critical Danger Flags Detected: {danger_flag_count} of 3\n"
170
- "Resources: " + resources + "\n\n"
171
- f"Sentiment: {sentiment_label.title()} (Confidence: {sentiment_score*100:.2f}%)"
172
-
173
 
174
  # THEN immediately follow with this:
175
  if contextual_flags:
 
162
  ])
163
 
164
  result = f"Abuse Risk Score: {abuse_level}% – {abuse_description}\n\n"
165
+
166
  if abuse_level >= 15:
167
  result += f"Most Likely Patterns:\n{top_pattern_explanations}\n\n"
168
 
169
+ result += f"⚠️ Critical Danger Flags Detected: {danger_flag_count} of 3\n"
170
+ result += f"Resources: {resources}\n"
171
+ result += f"🧭 Sentiment: {sentiment_label.title()} (Confidence: {sentiment_score*100:.2f}%)\n"
 
172
 
173
  # THEN immediately follow with this:
174
  if contextual_flags: