Spaces:
Runtime error
Runtime error
Commit ·
ab3cf88
1
Parent(s): 74db34f
update
Browse files- Dockerfile +3 -3
- requirements.txt +0 -1
Dockerfile
CHANGED
|
@@ -20,9 +20,9 @@ RUN pip install --no-cache-dir torch torchvision --extra-index-url https://downl
|
|
| 20 |
RUN pip install --no-cache-dir huggingface_hub
|
| 21 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 22 |
|
| 23 |
-
# 4-bis)
|
| 24 |
-
RUN pip install --no-cache-dir docling
|
| 25 |
-
|
| 26 |
|
| 27 |
# 5) Pré-créer model_cache et HF_HOME, puis chown
|
| 28 |
RUN mkdir -p /home/user/app/model_cache $HF_HUB_CACHE \
|
|
|
|
| 20 |
RUN pip install --no-cache-dir huggingface_hub
|
| 21 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 22 |
|
| 23 |
+
# 4-bis) Install Docling and prefetch its models
|
| 24 |
+
RUN pip install --no-cache-dir docling \
|
| 25 |
+
&& docling-tools models download
|
| 26 |
|
| 27 |
# 5) Pré-créer model_cache et HF_HOME, puis chown
|
| 28 |
RUN mkdir -p /home/user/app/model_cache $HF_HUB_CACHE \
|
requirements.txt
CHANGED
|
@@ -9,7 +9,6 @@ docling==2.32.0
|
|
| 9 |
docling-core==2.31.0
|
| 10 |
docling-ibm-models==3.4.3
|
| 11 |
docling-parse==4.0.1
|
| 12 |
-
docling-tools==2.32.0
|
| 13 |
easyocr==1.7.2
|
| 14 |
et_xmlfile==2.0.0
|
| 15 |
filelock==3.18.0
|
|
|
|
| 9 |
docling-core==2.31.0
|
| 10 |
docling-ibm-models==3.4.3
|
| 11 |
docling-parse==4.0.1
|
|
|
|
| 12 |
easyocr==1.7.2
|
| 13 |
et_xmlfile==2.0.0
|
| 14 |
filelock==3.18.0
|