SamanthaStorm commited on
Commit
ae867ed
Β·
verified Β·
1 Parent(s): bf94f2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -480,13 +480,11 @@ def analyze_composite(msg1, date1, msg2, date2, msg3, date3, *answers_and_none):
480
  out = f"Abuse Intensity: {composite_abuse}%\n"
481
  out += "πŸ“Š This reflects the strength and severity of detected abuse patterns in the message(s).\n\n"
482
 
483
- # Save this line for later use at the end
484
- escalation_text = f"🧨 **Escalation Potential: {risk_level} ({escalation_score}/{sum(w for _, w in ESCALATION_QUESTIONS)})**\n"
485
- escalation_text += "This score comes directly from the safety checklist and functions as a standalone escalation risk score.\n"
486
- escalation_text += "It indicates how many serious risk factors are present based on your answers to the safety checklist.\n"
487
  else:
488
- out += f"Escalation Potential: {risk_level} ({escalation_score}/{sum(w for _, w in ESCALATION_QUESTIONS)})\n"
489
- out += "🚨 This indicates how many serious risk factors are present based on your answers to the safety checklist.\n"
 
490
  if top_label is None:
491
  top_label = "Unknown – 0%"
492
  out += generate_risk_snippet(composite_abuse, top_label, escalation_score if escalation_score is not None else 0, most_common_stage)
 
480
  out = f"Abuse Intensity: {composite_abuse}%\n"
481
  out += "πŸ“Š This reflects the strength and severity of detected abuse patterns in the message(s).\n\n"
482
 
483
+ # Save this line for later use at the
 
 
 
484
  else:
485
+ escalation_text = f"🧨 **Escalation Potential: {risk_level} ({escalation_score}/{sum(w for _, w in ESCALATION_QUESTIONS)})**\n"
486
+ escalation_text += "This score comes directly from the safety checklist and functions as a standalone escalation risk score.\n"
487
+ escalation_text += "It indicates how many serious risk factors are present based on your answers to the safety checklist.\n"
488
  if top_label is None:
489
  top_label = "Unknown – 0%"
490
  out += generate_risk_snippet(composite_abuse, top_label, escalation_score if escalation_score is not None else 0, most_common_stage)