AndrewRqy commited on
Commit ·
48a6e45
1
Parent(s): 0bff9e9
Pin starlette<0.40 — TemplateResponse signature
Browse files1234561234567891011121314151617# Gradio frontend. Pinned to 5.x — 4.44 has a Jinja2 cache-key bug# (TypeError: unhashable type: 'dict') that fires on every HTTP request# with the Jinja2 version HF Spaces installs in 2026.# Also pin huggingface_hub<0.34 because gradio 5.0.x oauth.py still imports# HfFolder, which was removed from huggingface_hub in 0.34. The pin gives# us the import compatibility while keeping the Gradio 5 runtime fixes.# 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.5
# OpenAI client — used as the SDK for the Modal-hosted vLLM endpointopenai>=1.40requirements.txt+12-6