fin09 commited on
Commit
16f4ce1
·
1 Parent(s): c54fc68

Disable experimental Gradio SSR mode to prevent Node.js worker exit

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 directly (required for Hugging Face Spaces lifecycle)
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)