aproxtimedev commited on
Commit
263140f
·
verified ·
1 Parent(s): b95b96c

change : revert upgrade

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -1,5 +1,5 @@
1
  # https://huggingface.co/spaces/gaunernst/layoutlm-docvqa-paddleocr/blob/main/Dockerfile
2
- FROM python:3.10
3
 
4
  ENV CUDA_VISIBLE_DEVICES=-1
5
  ARG PIP_NO_CACHE_DIR=1
@@ -12,7 +12,7 @@ RUN wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1
12
  RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
13
  RUN pip install paddlepaddle==2.5.1 -i https://mirrors.cloud.tencent.com/pypi/simple/
14
  RUN pip install transformers gradio Pillow fastapi
15
- RUN pip install paddleocr==3.0.2 \
16
  && pip uninstall -y opencv-python opencv-contrib-python \
17
  && pip install opencv-python-headless==4.5.5.64
18
  RUN pip install "numpy<2.0.0"
 
1
  # https://huggingface.co/spaces/gaunernst/layoutlm-docvqa-paddleocr/blob/main/Dockerfile
2
+ FROM python:3.10-slim
3
 
4
  ENV CUDA_VISIBLE_DEVICES=-1
5
  ARG PIP_NO_CACHE_DIR=1
 
12
  RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
13
  RUN pip install paddlepaddle==2.5.1 -i https://mirrors.cloud.tencent.com/pypi/simple/
14
  RUN pip install transformers gradio Pillow fastapi
15
+ RUN pip install paddleocr==2.7.0.3 \
16
  && pip uninstall -y opencv-python opencv-contrib-python \
17
  && pip install opencv-python-headless==4.5.5.64
18
  RUN pip install "numpy<2.0.0"