studyOverflow commited on
Commit
f6f66ec
·
verified ·
1 Parent(s): 6d74700

fix: disable SSR (fixes /_app/immutable 404 + /video 308 redirect)

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -570,5 +570,9 @@ if __name__ == "__main__":
570
 
571
  _GradioApp.create_app = staticmethod(_patched_create_app)
572
 
573
- demo.queue(default_concurrency_limit=16).launch()
 
 
 
 
574
 
 
570
 
571
  _GradioApp.create_app = staticmethod(_patched_create_app)
572
 
573
+ # Disable SSR — it caused major issues:
574
+ # 1. /_app/immutable/* bundles 404'd on fresh browsers (old FastAPI mount)
575
+ # 2. /video/... got 308-redirected to / by the SSR router
576
+ # Classic CSR is simpler and rock-solid for our use-case.
577
+ demo.queue(default_concurrency_limit=16).launch(ssr_mode=False)
578