Pybunny commited on
Commit
4695023
·
verified ·
1 Parent(s): 6afce46

launch show_api=False bypass

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -429,4 +429,13 @@ def build_ui() -> gr.Blocks:
429
 
430
 
431
  if __name__ == "__main__":
432
- build_ui().launch()
 
 
 
 
 
 
 
 
 
 
429
 
430
 
431
  if __name__ == "__main__":
432
+ # show_api=False bypasses gradio 4.44's broken JSON-schema introspector
433
+ # which hits `additionalProperties: True` on the new BYOM-tab schemas
434
+ # and crashes the /info endpoint. The handlers still work over the
435
+ # normal WebSocket; only the auto-generated API docs are disabled.
436
+ build_ui().launch(
437
+ server_name="0.0.0.0",
438
+ server_port=7860,
439
+ share=False,
440
+ show_api=False,
441
+ )