Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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)})
|
| 143 |
-
out +=
|
| 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)]
|