SamanthaStorm commited on
Commit
92611e1
·
verified ·
1 Parent(s): 197c0d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -380,7 +380,8 @@ def analyze_composite(msg1, date1, msg2, date2, msg3, date3, *answers_and_none):
380
  else:
381
  out += f"Escalation Potential: {risk_level} ({escalation_score}/{sum(w for _, w in ESCALATION_QUESTIONS)})\n"
382
  out += "🚨 This indicates how many serious risk factors are present based on your answers to the safety checklist.\n"
383
-
 
384
  out += generate_risk_snippet(composite_abuse, top_label, escalation_score if escalation_score is not None else 0, most_common_stage)
385
  out += f"\n\n{stage_text}"
386
  out += darvo_blurb
 
380
  else:
381
  out += f"Escalation Potential: {risk_level} ({escalation_score}/{sum(w for _, w in ESCALATION_QUESTIONS)})\n"
382
  out += "🚨 This indicates how many serious risk factors are present based on your answers to the safety checklist.\n"
383
+ if top_label is None:
384
+ top_label = "Unknown – 0%"
385
  out += generate_risk_snippet(composite_abuse, top_label, escalation_score if escalation_score is not None else 0, most_common_stage)
386
  out += f"\n\n{stage_text}"
387
  out += darvo_blurb