SamanthaStorm commited on
Commit
7e8bed4
·
verified ·
1 Parent(s): 0994bb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -11
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
- iface = gr.Interface(
736
- fn=analyze_composite,
737
- inputs=textbox_inputs + quiz_boxes + [none_box],
738
- outputs=[
739
- gr.Textbox(label="Results"),
740
- gr.Image(label="Abuse Score Timeline", type="pil")
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