Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -3,9 +3,13 @@ FROM python:3.10
|
|
| 3 |
ENV CUDA_VISIBLE_DEVICES=-1
|
| 4 |
ARG PIP_NO_CACHE_DIR=1
|
| 5 |
|
|
|
|
|
|
|
|
|
|
| 6 |
# Install paddlepaddle (latest stable version)
|
| 7 |
RUN pip install paddlepaddle -i https://pypi.org/simple
|
| 8 |
|
|
|
|
| 9 |
RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
|
| 10 |
RUN pip install transformers gradio Pillow fastapi
|
| 11 |
RUN pip install paddleocr==2.7.0.3 && pip uninstall -y opencv-python opencv-contrib-python && pip install opencv-python-headless
|
|
|
|
| 3 |
ENV CUDA_VISIBLE_DEVICES=-1
|
| 4 |
ARG PIP_NO_CACHE_DIR=1
|
| 5 |
|
| 6 |
+
# Install specific version of numpy for compatibility
|
| 7 |
+
RUN pip install numpy==1.23.5
|
| 8 |
+
|
| 9 |
# Install paddlepaddle (latest stable version)
|
| 10 |
RUN pip install paddlepaddle -i https://pypi.org/simple
|
| 11 |
|
| 12 |
+
# Install dependencies
|
| 13 |
RUN pip install torch==2.1.1 -i https://download.pytorch.org/whl/cpu
|
| 14 |
RUN pip install transformers gradio Pillow fastapi
|
| 15 |
RUN pip install paddleocr==2.7.0.3 && pip uninstall -y opencv-python opencv-contrib-python && pip install opencv-python-headless
|