Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
@@ -50,8 +50,9 @@ ENV HOME=/home/user \
|
|
50 |
# Set working directory
|
51 |
WORKDIR $HOME/app
|
52 |
|
53 |
-
# Upgrade pip and install
|
54 |
RUN pip install --no-cache-dir --upgrade pip && \
|
|
|
55 |
pip install --no-cache-dir torch==1.7.1 torchvision --extra-index-url https://download.pytorch.org/whl/cu113 && \
|
56 |
python -c "import torch; print('PyTorch version:', torch.__version__)"
|
57 |
|
|
|
50 |
# Set working directory
|
51 |
WORKDIR $HOME/app
|
52 |
|
53 |
+
# Upgrade pip and install numpy<2 first, then PyTorch
|
54 |
RUN pip install --no-cache-dir --upgrade pip && \
|
55 |
+
pip install --no-cache-dir "numpy<2" && \
|
56 |
pip install --no-cache-dir torch==1.7.1 torchvision --extra-index-url https://download.pytorch.org/whl/cu113 && \
|
57 |
python -c "import torch; print('PyTorch version:', torch.__version__)"
|
58 |
|