AnikS22 commited on
Commit
278250d
·
verified ·
1 Parent(s): bc8682b

Deploy MidasMap Gradio app; weights downloaded from model repo at runtime

Browse files
Files changed (1) hide show
  1. requirements.txt +5 -2
requirements.txt CHANGED
@@ -2,6 +2,11 @@
2
  # Rename to requirements.txt in the Space repo root.
3
  # Python 3.13+ (default on HF) removed stdlib audioop; Gradio/pydub need this backport:
4
  audioop-lts>=0.2.0
 
 
 
 
 
5
  numpy>=1.24,<2
6
  torch>=2.0.0
7
  torchvision>=0.15.0
@@ -14,7 +19,5 @@ PyYAML>=6.0
14
  albumentations>=1.3.0
15
  opencv-python-headless>=4.7.0
16
  gradio==4.44.1
17
- # Pin below 3.2: Jinja 3.2+ breaks Gradio 4.44 + Starlette (unhashable dict in template cache) on Spaces.
18
- jinja2==3.1.6
19
  huggingface_hub>=0.20.0,<0.25.0
20
  tqdm>=4.65.0
 
2
  # Rename to requirements.txt in the Space repo root.
3
  # Python 3.13+ (default on HF) removed stdlib audioop; Gradio/pydub need this backport:
4
  audioop-lts>=0.2.0
5
+ # Pin web stack before Gradio: HF's resolver can otherwise pull Starlette 1.x + Jinja 3.2, which breaks Gradio 4.44 templates (unhashable dict in Jinja cache).
6
+ jinja2==3.1.6
7
+ starlette==0.41.3
8
+ fastapi==0.115.6
9
+ uvicorn[standard]>=0.24.0,<0.33.0
10
  numpy>=1.24,<2
11
  torch>=2.0.0
12
  torchvision>=0.15.0
 
19
  albumentations>=1.3.0
20
  opencv-python-headless>=4.7.0
21
  gradio==4.44.1
 
 
22
  huggingface_hub>=0.20.0,<0.25.0
23
  tqdm>=4.65.0