LucasLooTan commited on
Commit
9dc2f54
·
1 Parent(s): 6ce0243

fix: pin starlette<0.41 — gradio 4.44.1 incompatible with new TemplateResponse signature

Browse files
Files changed (1) hide show
  1. requirements.txt +5 -0
requirements.txt CHANGED
@@ -3,6 +3,11 @@ gradio==4.44.1
3
  gradio-client==1.3.0
4
  pydantic>=2.9,<2.10
5
  huggingface_hub>=0.26,<1.0
 
 
 
 
 
6
 
7
  # Backend / IO
8
  fastapi>=0.115
 
3
  gradio-client==1.3.0
4
  pydantic>=2.9,<2.10
5
  huggingface_hub>=0.26,<1.0
6
+ # Pin starlette to a version where TemplateResponse(name, context) still
7
+ # works — starlette 0.41+ swapped the signature to (request, name, context)
8
+ # which breaks gradio 4.44.1's jinja2 cache key (TypeError: unhashable dict).
9
+ starlette>=0.36,<0.41
10
+ jinja2>=3.1,<3.2
11
 
12
  # Backend / IO
13
  fastapi>=0.115