Marsouuu commited on
Commit
7a46795
·
1 Parent(s): 5e5fca2

Remplacé pdf2image/Poppler par PyMuPDF pour une meilleure compatibilité sans Docker

Browse files
Files changed (3) hide show
  1. .dockerignore +0 -6
  2. Dockerfile +0 -25
  3. runtime.txt +0 -1
.dockerignore DELETED
@@ -1,6 +0,0 @@
1
- .git
2
- .gitignore
3
- .gradio
4
- __pycache__
5
- *.pyc
6
- *.pyo
 
 
 
 
 
 
 
Dockerfile DELETED
@@ -1,25 +0,0 @@
1
- FROM python:3.9
2
-
3
- WORKDIR /code
4
-
5
- # Installer poppler-utils complet pour pdf2image
6
- RUN apt-get update && apt-get install -y \
7
- poppler-utils \
8
- libpoppler-cpp-dev \
9
- libpoppler-private-dev \
10
- pkg-config \
11
- && rm -rf /var/lib/apt/lists/* \
12
- && which pdftoppm && echo "Poppler correctement installé!" \
13
- || echo "ERREUR: Poppler non installé correctement!"
14
-
15
- COPY requirements.txt /code/requirements.txt
16
- RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
17
-
18
- # Vérification de l'installation de pdf2image
19
- RUN python -c "from pdf2image import convert_from_bytes; print('pdf2image est correctement installé!')" \
20
- || echo "ERREUR: pdf2image n'est pas installé correctement!"
21
-
22
- COPY . /code
23
-
24
- # Commande de démarrage de l'application Gradio
25
- CMD ["python", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
runtime.txt DELETED
@@ -1 +0,0 @@
1
- 3.9