TheOneHong commited on
Commit
04c5b9c
·
verified ·
1 Parent(s): da826ae

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -22,8 +22,9 @@ RUN pip install paddlepaddle==3.0.0 || \
22
  # 安装基础依赖
23
  RUN pip install transformers gradio Pillow fastapi uvicorn
24
 
25
- # 直接升级到PaddleOCR 3.0最新版
26
- RUN pip install paddleocr==3.0.3 \
 
27
  && pip uninstall -y opencv-python opencv-contrib-python \
28
  && pip install opencv-python-headless
29
 
 
22
  # 安装基础依赖
23
  RUN pip install transformers gradio Pillow fastapi uvicorn
24
 
25
+ # 先降级NumPy以兼容PaddleOCR 3.0,然后安装PaddleOCR
26
+ RUN pip install "numpy<2.0" && \
27
+ pip install paddleocr==3.0.3 \
28
  && pip uninstall -y opencv-python opencv-contrib-python \
29
  && pip install opencv-python-headless
30