Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -732,8 +732,8 @@ textbox_inputs = [gr.Textbox(label=f"Message {i+1}") for i in range(3)]
|
|
732 |
quiz_boxes = [gr.Checkbox(label=q) for q, _ in ESCALATION_QUESTIONS]
|
733 |
none_box = gr.Checkbox(label="None of the above")
|
734 |
|
735 |
-
|
736 |
-
|
737 |
fn=analyze_composite,
|
738 |
inputs=textbox_inputs + quiz_boxes + [none_box],
|
739 |
outputs=[
|
@@ -741,8 +741,15 @@ demo = gr.Interface(
|
|
741 |
gr.Image(label="Abuse Score Timeline", type="pil")
|
742 |
],
|
743 |
title="Abuse Pattern Detector + Escalation Quiz",
|
744 |
-
description=
|
|
|
|
|
|
|
745 |
flagging_mode="manual"
|
746 |
)
|
747 |
|
|
|
|
|
|
|
|
|
748 |
|
|
|
732 |
quiz_boxes = [gr.Checkbox(label=q) for q, _ in ESCALATION_QUESTIONS]
|
733 |
none_box = gr.Checkbox(label="None of the above")
|
734 |
|
735 |
+
|
736 |
+
interface = gr.Interface(
|
737 |
fn=analyze_composite,
|
738 |
inputs=textbox_inputs + quiz_boxes + [none_box],
|
739 |
outputs=[
|
|
|
741 |
gr.Image(label="Abuse Score Timeline", type="pil")
|
742 |
],
|
743 |
title="Abuse Pattern Detector + Escalation Quiz",
|
744 |
+
description=(
|
745 |
+
"Enter up to three messages that concern you. "
|
746 |
+
"For the most accurate results, include messages from a recent emotionally intense period."
|
747 |
+
),
|
748 |
flagging_mode="manual"
|
749 |
)
|
750 |
|
751 |
+
# then alias it so Spaces will see either name:
|
752 |
+
demo = interface
|
753 |
+
app = interface
|
754 |
+
|
755 |
|