Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -732,17 +732,13 @@ 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 |
-
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
title="Abuse Pattern Detector + Escalation Quiz",
|
743 |
-
description="Enter up to three messages that concern you. For the most accurate results, enter messages that happened during a recent time period that felt emotionally intense or 'off.'",
|
744 |
-
allow_flagging="manual"
|
745 |
-
)
|
746 |
|
747 |
iface.launch(server_name="0.0.0.0", server_port=7860)
|
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 |
+
+ demo = gr.Interface(
|
736 |
+
fn=analyze_composite,
|
737 |
+
inputs= textbox_inputs + quiz_boxes + [none_box],
|
738 |
+
outputs=[ gr.Textbox(...), gr.Image(... ) ],
|
739 |
+
title="Abuse Pattern Detector + Escalation Quiz",
|
740 |
+
description="…",
|
741 |
+
allow_flagging="manual"
|
|
|
|
|
|
|
|
|
742 |
|
743 |
iface.launch(server_name="0.0.0.0", server_port=7860)
|
744 |
|