Pybunny commited on
Commit
24a846b
·
verified ·
1 Parent(s): 787c9b2

Bare launch()

Browse files
Files changed (1) hide show
  1. app.py +4 -10
app.py CHANGED
@@ -456,13 +456,7 @@ def build_ui() -> gr.Blocks:
456
 
457
 
458
  if __name__ == "__main__":
459
- # show_api=False bypasses gradio 4.44's broken JSON-schema introspector
460
- # which hits `additionalProperties: True` on the new BYOM-tab schemas
461
- # and crashes the /info endpoint. The handlers still work over the
462
- # normal WebSocket; only the auto-generated API docs are disabled.
463
- build_ui().launch(
464
- server_name="0.0.0.0",
465
- server_port=7860,
466
- share=False,
467
- show_api=False,
468
- )
 
456
 
457
 
458
  if __name__ == "__main__":
459
+ # Use bare launch(); HF Spaces auto-detects host/port from env vars.
460
+ # The schema bug that breaks /info is already handled by the
461
+ # gradio_client monkey-patch at the top of this file.
462
+ build_ui().launch()