Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -196,9 +196,9 @@ def analyze_composite(msg1, msg2, msg3, *answers_and_none):
|
|
196 |
composite_abuse = int(round(sum(abuse_scores) / len(abuse_scores)))
|
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)
|
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}"
|
204 |
return out
|
|
|
196 |
composite_abuse = int(round(sum(abuse_scores) / len(abuse_scores)))
|
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).\n\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\n"
|
202 |
out += generate_risk_snippet(composite_abuse, top_label, escalation_score)
|
203 |
out += f"\n\n{stage_text}"
|
204 |
return out
|