Spaces:
Runtime error
Runtime error
| # Reference only β dependencies are installed directly in the Dockerfile | |
| # to allow two-layer pip caching (small packages / magic-pdf separately). | |
| # | |
| # ββ Layer 1 β small + opencv-headless ββββββββββββββββββββββββββββββββββββββββ | |
| fastapi>=0.115.0 | |
| uvicorn[standard]>=0.32.0 | |
| python-multipart>=0.0.12 | |
| Pillow>=10.0.0 | |
| pillow-heif>=0.18.0 | |
| huggingface_hub>=0.25.0 | |
| opencv-python-headless>=4.8.0 # MUST be layer-1 so magic-pdf sees cv2 as satisfied | |
| # and does not pull in the full X11 opencv-python build | |
| # | |
| # ββ Layer 2 β magic-pdf (requires --extra-index-url https://myhloli.github.io/wheels/) ββ | |
| magic-pdf[full-cpu]==1.3.12 | |
| # | |
| # ββ Removed βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # python-magic β was listed in requirements but never imported in main.py | |
| # libmagic1 β C dep of python-magic, also removed from system packages | |