Pybunny commited on
Commit
79d4858
·
verified ·
1 Parent(s): 01d1f93

Pin starlette<0.36 and gradio_client<1.5

Browse files
Files changed (1) hide show
  1. requirements.txt +6 -0
requirements.txt CHANGED
@@ -5,6 +5,12 @@ gradio>=4.44,<5
5
  # Pin <1.0: huggingface_hub 1.x (released after the original Space build)
6
  # dropped HfFolder, which gradio 4.x imports at module load.
7
  huggingface_hub>=0.24,<1.0
 
 
 
 
 
 
8
  # audioop was dropped from the Python stdlib in 3.13. The Space is pinned to
9
  # 3.12 in README frontmatter, but keep the shim for safety in case it gets
10
  # rebuilt on a newer interpreter.
 
5
  # Pin <1.0: huggingface_hub 1.x (released after the original Space build)
6
  # dropped HfFolder, which gradio 4.x imports at module load.
7
  huggingface_hub>=0.24,<1.0
8
+ # Pin <0.36: starlette 0.36+ requires `TemplateResponse(request, name, ctx)`,
9
+ # while gradio 4.x still calls the deprecated `(name, ctx)` form. Without
10
+ # the pin the context dict gets passed where jinja expects a template
11
+ # name, crashing the / route with `unhashable type: 'dict'`.
12
+ starlette<0.36
13
+ gradio_client<1.5
14
  # audioop was dropped from the Python stdlib in 3.13. The Space is pinned to
15
  # 3.12 in README frontmatter, but keep the shim for safety in case it gets
16
  # rebuilt on a newer interpreter.