Spaces:
Sleeping
Sleeping
Disable Gradio SSR mode to fix HF Space port conflict
Browse filesGradio 6.x SSR mode spawns a separate Node.js server on port 7861,
which conflicts across HF Space restarts and causes a crash loop
(Errno 98 address already in use). Disabling SSR removes the Node
sidecar and resolves the bind failure.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
app.py
CHANGED
|
@@ -308,6 +308,7 @@ app = gr.mount_gradio_app(
|
|
| 308 |
demo,
|
| 309 |
path="/",
|
| 310 |
auth_dependency=_google_user if GOOGLE_AUTH_ENABLED else None,
|
|
|
|
| 311 |
)
|
| 312 |
|
| 313 |
|
|
|
|
| 308 |
demo,
|
| 309 |
path="/",
|
| 310 |
auth_dependency=_google_user if GOOGLE_AUTH_ENABLED else None,
|
| 311 |
+
ssr_mode=False,
|
| 312 |
)
|
| 313 |
|
| 314 |
|