Commit ·
1e8a44d
1
Parent(s): abf27c2
Pin Starlette below 1.0 for Gradio 4.44 compatibility.
Browse filesHF Python 3.13 pulls Starlette 1.x, which breaks Gradio's TemplateResponse calls and causes Jinja2 unhashable dict errors on startup.
Co-authored-by: Cursor <cursoragent@cursor.com>
- requirements-dev.txt +1 -0
- requirements.txt +2 -0
requirements-dev.txt
CHANGED
|
@@ -2,5 +2,6 @@
|
|
| 2 |
-r requirements.txt
|
| 3 |
gradio==4.44.1
|
| 4 |
pydantic==2.10.6
|
|
|
|
| 5 |
pytest>=8.0.0
|
| 6 |
google-genai>=1.0.0
|
|
|
|
| 2 |
-r requirements.txt
|
| 3 |
gradio==4.44.1
|
| 4 |
pydantic==2.10.6
|
| 5 |
+
starlette>=0.40.2,<1.0.0
|
| 6 |
pytest>=8.0.0
|
| 7 |
google-genai>=1.0.0
|
requirements.txt
CHANGED
|
@@ -3,6 +3,8 @@
|
|
| 3 |
# Pillow pin avoids building 10.3.0 from source on Python 3.13 (HF builder).
|
| 4 |
# Pydantic pin avoids Gradio 4.x API schema crash (additionalProperties: false → bool).
|
| 5 |
pydantic==2.10.6
|
|
|
|
|
|
|
| 6 |
pillow>=10.4.0,<11.0
|
| 7 |
# Gradio/pydub on Python 3.13 (audioop removed from stdlib; use LTS backport).
|
| 8 |
audioop-lts>=0.2.0; python_version >= "3.13"
|
|
|
|
| 3 |
# Pillow pin avoids building 10.3.0 from source on Python 3.13 (HF builder).
|
| 4 |
# Pydantic pin avoids Gradio 4.x API schema crash (additionalProperties: false → bool).
|
| 5 |
pydantic==2.10.6
|
| 6 |
+
# Gradio 4.44 uses Starlette's old TemplateResponse(name, context) API; Starlette 1.0 breaks it.
|
| 7 |
+
starlette>=0.40.2,<1.0.0
|
| 8 |
pillow>=10.4.0,<11.0
|
| 9 |
# Gradio/pydub on Python 3.13 (audioop removed from stdlib; use LTS backport).
|
| 10 |
audioop-lts>=0.2.0; python_version >= "3.13"
|