peteryej Claude Opus 4.8 commited on
Commit
daa09b4
·
1 Parent(s): e4fde8c

Disable Gradio SSR mode to fix HF Space port conflict

Browse files

Gradio 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>

Files changed (1) hide show
  1. app.py +1 -0
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