AndrewRqy commited on
Commit ·
2d833ad
1
Parent(s): dd3c7db
Disable Gradio 6 SSR — Node-proxy SSR stalls on the large data-URI HTML
Browse files4997 unmodified lines4998499950005001500250034997 unmodified lines# Gradio 6: theme + css live on launch() now, not Blocks().theme=getattr(demo, "_apprentice_theme", None),css=getattr(demo, "_apprentice_css", None),allowed_paths=[str(_HERE / "assets")],show_error=True,)4997 unmodified lines499849995000500150025003500450055006500750084997 unmodified lines# Gradio 6: theme + css live on launch() now, not Blocks().theme=getattr(demo, "_apprentice_theme", None),css=getattr(demo, "_apprentice_css", None),# Gradio 6 enables SSR by default (a Node.js proxy in front of the# Python ASGI app). SSR hydration fails inside HF's Space iframe and# leaves the App tab blank — same symptom that hit us on Gradio 5.# Force classic client-rendering so the iframe loads cleanly.ssr_mode=False,allowed_paths=[str(_HERE / "assets")],show_error=True,)
app.py+5