Spaces:
Sleeping
Sleeping
fin09 commited on
Commit ·
16f4ce1
1
Parent(s): c54fc68
Disable experimental Gradio SSR mode to prevent Node.js worker exit
Browse files
app.py
CHANGED
|
@@ -115,6 +115,6 @@ for route in fastapi_app.routes:
|
|
| 115 |
if hasattr(route, "path") and route.path.startswith("/api/"):
|
| 116 |
demo.app.routes.append(route)
|
| 117 |
|
| 118 |
-
# Launch Gradio app
|
| 119 |
demo.queue()
|
| 120 |
-
demo.launch(server_name="0.0.0.0", server_port=7860)
|
|
|
|
| 115 |
if hasattr(route, "path") and route.path.startswith("/api/"):
|
| 116 |
demo.app.routes.append(route)
|
| 117 |
|
| 118 |
+
# Launch Gradio app with ssr_mode=False (disables unstable Node.js SSR worker)
|
| 119 |
demo.queue()
|
| 120 |
+
demo.launch(server_name="0.0.0.0", server_port=7860, ssr_mode=False)
|