SamanthaStorm commited on
Commit
bf400ea
·
verified ·
1 Parent(s): daa7bce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -139,9 +139,9 @@ def analyze_composite(msg1, msg2, msg3, *answers_and_none):
139
  risk_level = "low"
140
 
141
  out = f"Abuse Intensity: {composite_abuse}%\n"
142
- out += f"Escalation Potential: {risk_level.capitalize()} ({escalation_score}/{sum(w for _, w in ESCALATION_QUESTIONS)})\n"
143
- out += f"Top Pattern: {top_label}\n"
144
- out += f"\n{stage_text}"
145
  return out
146
 
147
  textbox_inputs = [gr.Textbox(label=f"Message {i+1}") for i in range(3)]
 
139
  risk_level = "low"
140
 
141
  out = f"Abuse Intensity: {composite_abuse}%\n"
142
+ out += f"Escalation Potential: {risk_level.capitalize()} ({escalation_score}/{sum(w for _, w in ESCALATION_QUESTIONS)})"
143
+ out += generate_risk_snippet(composite_abuse, top_label, escalation_score)
144
+ out += f"\n\n{stage_text}"
145
  return out
146
 
147
  textbox_inputs = [gr.Textbox(label=f"Message {i+1}") for i in range(3)]