AndrewRqy commited on
Commit ·
b63724f
1
Parent(s): 48a6e45
Roll back to Gradio 4.44.1 to match local dev
Browse filesFiles changed (3)
- README.md+1-1
- app.py-5
- requirements.txt+12-10
3 unmodified lines456789103 unmodified linescolorFrom: indigocolorTo: yellowsdk: gradiosdk_version: 5.0.1python_version: "3.10"suggested_hardware: cpu-basicapp_file: app.py3 unmodified lines456789103 unmodified linescolorFrom: indigocolorTo: yellowsdk: gradiosdk_version: 4.44.1python_version: "3.10"suggested_hardware: cpu-basicapp_file: app.py
4990 unmodified lines499149924993499449954996499749984999500050014990 unmodified linesdemo.launch(server_name="0.0.0.0",server_port=7860,# Gradio 5's SSR (enabled by default) hydration-fails inside the# HF Space iframe and leaves the App tab blank. Disabling SSR# forces a classic client-rendered page that renders correctly# through the iframe.ssr_mode=False,allowed_paths=[str(_HERE / "assets")],show_api=False,show_error=True,4990 unmodified lines4991499249934994499549964990 unmodified linesdemo.launch(server_name="0.0.0.0",server_port=7860,allowed_paths=[str(_HERE / "assets")],show_api=False,show_error=True,
1234567891011121314# Gradio frontend (5.x).# Pin huggingface_hub<0.34 — gradio 5.0.x oauth.py still imports HfFolder,# which was removed from huggingface_hub in 0.34.# Pin starlette<0.40 — starlette 0.40 changed TemplateResponse's signature# (request is now the first positional arg). Gradio 5.0.x still calls# the old signature, so the `name` slot gets a dict and Jinja2 fails to# hash it as a cache key (TypeError: unhashable type: 'dict' on every# HTTP request). Holding starlette < 0.40 keeps the old signature alive.# Pin jinja2<3.1.5 — defense-in-depth in case the Jinja2 LRUCache.get# also got stricter about non-tuple keys.gradio>=5.0,<6huggingface_hub>=0.23,<0.34starlette<0.40jinja2<3.1.512345678910111213141516# Gradio frontend.# Roll back to 4.44.1 — the version this app was developed against. Gradio 5# rendered the simple probe but not the full Blocks tree; reverting to 4.44.1# matches the local dev environment exactly so the production Space matches# what was tested locally.# Pin huggingface_hub<0.34 — gradio 4.44 oauth.py imports HfFolder which# was removed from huggingface_hub in 0.34.# Pin starlette<0.40 — starlette 0.40 changed TemplateResponse's signature# (request is now the first positional arg), and gradio 4.44 still uses# the old signature. Without this, every HTTP request triggers# TypeError: unhashable type: 'dict' inside Jinja2.# Pin jinja2<3.1.5 — defense-in-depth on the LRUCache key shape.gradio==4.44.1huggingface_hub>=0.23,<0.34starlette<0.40jinja2<3.1.5
README.md+1-1
app.py-5
requirements.txt+12-10