Manmay Nakhashi commited on
Commit ·
93ba49e
1
Parent(s): 96dc22c
Pin starlette<1.0 + fastapi<0.116 for gradio 4.44.1 TemplateResponse compat
Browse filesStarlette 1.0 removed the old TemplateResponse(name, context) positional
API that gradio 4.44.1 still uses, causing 'unhashable type: dict' in
Jinja2 cache (a Request object reaches the cache key). Pinning to <1.0
keeps the legacy signature alive. fastapi<0.116 keeps a starlette<1.0
in its dependency range.
- requirements.txt +2 -0
requirements.txt
CHANGED
|
@@ -1,6 +1,8 @@
|
|
| 1 |
torch==2.4.0
|
| 2 |
torchaudio==2.4.0
|
| 3 |
pydantic==2.10.6
|
|
|
|
|
|
|
| 4 |
safetensors>=0.4.0
|
| 5 |
accelerate>=0.25.0
|
| 6 |
peft>=0.7.0
|
|
|
|
| 1 |
torch==2.4.0
|
| 2 |
torchaudio==2.4.0
|
| 3 |
pydantic==2.10.6
|
| 4 |
+
starlette<1.0
|
| 5 |
+
fastapi<0.116
|
| 6 |
safetensors>=0.4.0
|
| 7 |
accelerate>=0.25.0
|
| 8 |
peft>=0.7.0
|