bapi143 commited on
Commit
201bef3
·
1 Parent(s): 0bc80e1

Disable ssr_mode in demo.launch() so Python FastAPI directly handles HTTP requests on port 7860

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,4 +68,4 @@ gradio_routes = [r for r in demo.app.router.routes if getattr(r, 'path', '') not
68
  demo.app.router.routes = backend_routes + gradio_routes
69
 
70
  if __name__ == "__main__":
71
- demo.launch()
 
68
  demo.app.router.routes = backend_routes + gradio_routes
69
 
70
  if __name__ == "__main__":
71
+ demo.launch(ssr_mode=False)