SamanthaStorm commited on
Commit
e51f586
Β·
verified Β·
1 Parent(s): 4ae809e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -733,7 +733,9 @@ 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=[
@@ -748,8 +750,8 @@ interface = gr.Interface(
748
  flagging_mode="manual"
749
  )
750
 
751
- # then alias it so Spaces will see either name:
752
- demo = interface
753
- app = interface
754
 
755
 
 
733
  none_box = gr.Checkbox(label="None of the above")
734
 
735
 
736
+ # ─── FINAL β€œFORCE LAUNCH” (no guards) ────────────────────────
737
+
738
+ demo = gr.Interface(
739
  fn=analyze_composite,
740
  inputs=textbox_inputs + quiz_boxes + [none_box],
741
  outputs=[
 
750
  flagging_mode="manual"
751
  )
752
 
753
+ # This single call will start the server and block,
754
+ # keeping the container alive on Spaces.
755
+ demo.launch()
756
 
757