SamanthaStorm commited on
Commit
bb07289
Β·
verified Β·
1 Parent(s): f49c6a4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -197,7 +197,7 @@ def analyze_composite(msg1, msg2, msg3, *answers_and_none):
197
 
198
  out = f"Abuse Intensity: {composite_abuse}%\n"
199
  out += "πŸ“Š This reflects the strength and severity of detected abuse patterns in the message(s), based on their type and weight.\n"
200
- out += f"Escalation Potential: {('High' if escalation_score >= 16 else 'Moderate' if escalation_score >= 8 else 'Low')} ({escalation_score}/{sum(w for _, w in ESCALATION_QUESTIONS)})"
201
  out += "🚨 This indicates how many serious risk factors are present based on your answers to the safety checklist.\n"
202
  out += generate_risk_snippet(composite_abuse, top_label, escalation_score)
203
  out += f"\n\n{stage_text}"
 
197
 
198
  out = f"Abuse Intensity: {composite_abuse}%\n"
199
  out += "πŸ“Š This reflects the strength and severity of detected abuse patterns in the message(s), based on their type and weight.\n"
200
+ out += f"Escalation Potential: {('High' if escalation_score >= 16 else 'Moderate' if escalation_score >= 8 else 'Low')} ({escalation_score}/{sum(w for _, w in ESCALATION_QUESTIONS)})\n"
201
  out += "🚨 This indicates how many serious risk factors are present based on your answers to the safety checklist.\n"
202
  out += generate_risk_snippet(composite_abuse, top_label, escalation_score)
203
  out += f"\n\n{stage_text}"