Spaces:
Runtime error
Runtime error
PDF2Image support
Browse files- Dockerfile +2 -0
- requirements-fastapi.txt +1 -0
Dockerfile
CHANGED
@@ -8,6 +8,8 @@ COPY requirements-fastapi.txt ./
|
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
libgl1-mesa-dev
|
10 |
|
|
|
|
|
11 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements-fastapi.txt
|
12 |
|
13 |
RUN useradd -m -u 1000 user
|
|
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
libgl1-mesa-dev
|
10 |
|
11 |
+
RUN apt-get install -y poppler-utils libpoppler-cpp-dev
|
12 |
+
|
13 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements-fastapi.txt
|
14 |
|
15 |
RUN useradd -m -u 1000 user
|
requirements-fastapi.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
pdf2image==1.16.2
|
|
|
2 |
datasets==2.10.1
|
3 |
Pillow==9.5.0
|
4 |
paddlepaddle==2.4.2
|
|
|
1 |
pdf2image==1.16.2
|
2 |
+
python-poppler==0.4.1
|
3 |
datasets==2.10.1
|
4 |
Pillow==9.5.0
|
5 |
paddlepaddle==2.4.2
|