Spaces:
Running
Running
fix: disable SSR (fixes /_app/immutable 404 + /video 308 redirect)
Browse files
app.py
CHANGED
|
@@ -570,5 +570,9 @@ if __name__ == "__main__":
|
|
| 570 |
|
| 571 |
_GradioApp.create_app = staticmethod(_patched_create_app)
|
| 572 |
|
| 573 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|