Disable ssr_mode in demo.launch() so Python FastAPI directly handles HTTP requests on port 7860
Browse files
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)
|