Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -4,14 +4,14 @@ 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
|
| 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
|
| 15 |
# Install libGL (needed for OpenCV)
|
| 16 |
RUN apt-get update && apt-get install -y libgl1
|
| 17 |
RUN pip install paddleocr==2.7.0.3 && pip uninstall -y opencv-python opencv-contrib-python && pip install opencv-python
|
|
|
|
| 4 |
ARG PIP_NO_CACHE_DIR=1
|
| 5 |
|
| 6 |
# Install specific version of numpy for compatibility
|
| 7 |
+
RUN pip install numpy==1.26.4
|
| 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 fastapi pypdf2 fitz boto3 pillow openai==0.28 setuptools pymupdf python-dotenv
|
| 15 |
# Install libGL (needed for OpenCV)
|
| 16 |
RUN apt-get update && apt-get install -y libgl1
|
| 17 |
RUN pip install paddleocr==2.7.0.3 && pip uninstall -y opencv-python opencv-contrib-python && pip install opencv-python
|