crazylemonade commited on
Commit
76be64d
Β·
verified Β·
1 Parent(s): 4f0701c

Delete requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +0 -32
requirements.txt DELETED
@@ -1,32 +0,0 @@
1
- # Reference only β€” dependencies are installed directly in the Dockerfile
2
- # as three separate pip layers for granular Docker layer caching.
3
- #
4
- # ── Layer 1: small packages ───────────────────────────────────────────────────
5
- # fastapi>=0.115.0
6
- # uvicorn[standard]>=0.32.0
7
- # python-multipart>=0.0.12
8
- # Pillow>=10.0.0
9
- # pillow-heif>=0.18.0
10
- # huggingface_hub>=0.25.0
11
- # opencv-python-headless>=4.8.0 ← headless; must be Layer 1 before magic-pdf
12
- #
13
- # ── Layer 2: torch CPU (from https://download.pytorch.org/whl/cpu) ────────────
14
- # torch>=2.0.0 ← CPU-only wheel (not on PyPI as CPU)
15
- # torchvision>=0.15.0 ← CPU-only wheel
16
- #
17
- # ── Layer 3: magic-pdf + ALL explicit OCR runtime deps ───────────────────────
18
- # (--extra-index-url https://myhloli.github.io/wheels/ for paddlepaddle CPU)
19
- # magic-pdf[full-cpu]==1.3.12
20
- # doclayout-yolo>=0.0.2 ← layout detection (uses ultralytics)
21
- # ultralytics>=8.0.0 ← YOLO inference engine
22
- # onnxruntime>=1.17.0 ← ONNX for MFD + table models
23
- # paddleocr>=2.7.0 ← OCR text extraction engine
24
- # rapid-table>=0.2.0 ← table structure reconstruction
25
- # shapely>=2.0.0 ← geometry ops (paddleocr dep)
26
- # pyclipper>=1.3.0 ← polygon clipping (paddleocr dep)
27
- # scipy>=1.11.0 ← scientific computing (layout/OCR dep)
28
- #
29
- # ── Why explicit listing matters ──────────────────────────────────────────────
30
- # Without explicit listing, pip's resolver can skip transitive deps when
31
- # it cannot satisfy their sub-deps (e.g. torch on PyPI has no CPU wheel,
32
- # so pip silently skips ultralytics β†’ doclayout_yolo β†’ layout fails at runtime).