Maarij-Aqeel commited on
Commit
2a40912
·
1 Parent(s): 6b2ed6e

Pin fastapi<0.113 and starlette<0.39 for gradio 4.44.0 compat

Browse files

starlette 0.39 changed TemplateResponse's positional arg order. gradio 4.44.0 still uses the pre-0.39 calling convention, which causes 'unhashable type: dict' in jinja2's template cache. fastapi 0.113+ pulls in starlette 0.39+, so pin both.

Files changed (1) hide show
  1. requirements.txt +3 -1
requirements.txt CHANGED
@@ -10,4 +10,6 @@ pydub
10
  tqdm
11
  underthesea
12
  huggingface_hub==0.24.7
13
- pydantic<2.10
 
 
 
10
  tqdm
11
  underthesea
12
  huggingface_hub==0.24.7
13
+ pydantic<2.10
14
+ fastapi<0.113
15
+ starlette<0.39