SamanthaStorm commited on
Commit
b74f31e
·
verified ·
1 Parent(s): 466127f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -732,12 +732,16 @@ 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
  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)
 
732
  quiz_boxes = [gr.Checkbox(label=q) for q, _ in ESCALATION_QUESTIONS]
733
  none_box = gr.Checkbox(label="None of the above")
734
 
735
+ # top-level
736
  demo = gr.Interface(
737
  fn=analyze_composite,
738
+ inputs=textbox_inputs + quiz_boxes + [ none_box ],
739
+ outputs=[
740
+ gr.Textbox(label="Results"),
741
+ gr.Image(label="Abuse Score Timeline", type="pil")
742
+ ],
743
  title="Abuse Pattern Detector + Escalation Quiz",
744
+ description="Enter up to three messages that concern you…",
745
  allow_flagging="manual"
746
  )
747
  iface.launch(server_name="0.0.0.0", server_port=7860)