Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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 |
-
#
|
26 |
-
RUN pip install
|
|
|
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 |
|