Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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
|
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 |
-
|
489 |
-
|
|
|
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)
|