Pream912 commited on
Commit
75a63cc
·
verified ·
1 Parent(s): 3d6500e

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +19 -8
requirements.txt CHANGED
@@ -1,16 +1,27 @@
1
- fastapi>=0.104.0
2
- uvicorn[standard]>=0.24.0
3
- python-multipart>=0.0.6
 
4
  torch>=2.0.0
5
  torchvision>=0.15.0
6
  segment-anything @ git+https://github.com/facebookresearch/segment-anything.git
7
- easyocr>=1.7.0
8
  opencv-contrib-python-headless>=4.8.0
9
  numpy>=1.24.0,<2.0
10
  Pillow>=10.0.0
11
- requests>=2.28.0
12
- huggingface_hub>=0.20.0
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  scipy>=1.11.0
14
  scikit-image>=0.21.0
15
- # Single-page demo UI (gradio_app.py). Not needed by the FastAPI service.
16
- gradio>=4.0.0
 
1
+ # Hugging Face Space requirements for sam_auto_app.py.
2
+ # Rename to requirements.txt in the Space repo.
3
+
4
+ gradio>=4.0.0
5
  torch>=2.0.0
6
  torchvision>=0.15.0
7
  segment-anything @ git+https://github.com/facebookresearch/segment-anything.git
 
8
  opencv-contrib-python-headless>=4.8.0
9
  numpy>=1.24.0,<2.0
10
  Pillow>=10.0.0
11
+ easyocr>=1.7.0
12
+
13
+ # Vector wall extraction from PDF (pdf_walls.py). Without it the PDF tab is
14
+ # disabled and only the raster path runs.
15
+ pymupdf>=1.24.0
16
+
17
+ # REQUIRED, both of them. Wall extraction is the wall_vectorizer_flask.py method:
18
+ # vtracer traces the sheet, svgpathtools parses the traced paths and splits them
19
+ # into the subpaths the wall filter measures. Without either there is no wall
20
+ # extraction at all — the app has no other path and no network fallback.
21
+ vtracer>=0.6.11
22
+ svgpathtools>=1.6.1
23
+
24
+ # Only needed for the 1:1 parity path (when the sibling DeepPlan modules are
25
+ # uploaded alongside the app). Harmless to keep for the inline-port-only setup.
26
  scipy>=1.11.0
27
  scikit-image>=0.21.0