SamanthaStorm commited on
Commit
12efd19
·
verified ·
1 Parent(s): a568262

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -202,7 +202,7 @@ def analyze_composite(msg1, msg2, msg3, *answers_and_none):
202
 
203
  out = f"Abuse Intensity: {composite_abuse}%\n"
204
  out += f"Escalation Potential: {escalation_level} ({escalation_score}/{sum(w for _,w in ESCALATION_QUESTIONS)})"
205
- out += generate_risk_snippet(composite_abuse, top_pattern)
206
  if avg_darvo > 0.25:
207
  level = "moderate" if avg_darvo < 0.65 else "high"
208
  out += f"\n\nDARVO Score: {avg_darvo} → This indicates a **{level} likelihood** of narrative reversal (DARVO), where the speaker may be denying, attacking, or reversing blame."
 
202
 
203
  out = f"Abuse Intensity: {composite_abuse}%\n"
204
  out += f"Escalation Potential: {escalation_level} ({escalation_score}/{sum(w for _,w in ESCALATION_QUESTIONS)})"
205
+ out += generate_risk_snippet(composite_abuse, top_pattern[0])
206
  if avg_darvo > 0.25:
207
  level = "moderate" if avg_darvo < 0.65 else "high"
208
  out += f"\n\nDARVO Score: {avg_darvo} → This indicates a **{level} likelihood** of narrative reversal (DARVO), where the speaker may be denying, attacking, or reversing blame."