yinwentao commited on
Commit ·
09f6ae8
1
Parent(s): 7d19842
updateRequirements
Browse files- Dockerfile +2 -1
- app.py +2 -3
Dockerfile
CHANGED
|
@@ -36,12 +36,13 @@ ENV HOME=/home/user \
|
|
| 36 |
SYSTEM=spaces
|
| 37 |
|
| 38 |
|
|
|
|
| 39 |
RUN pip3 install --no-cache-dir -U torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113
|
| 40 |
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 41 |
|
| 42 |
# Set the working directory to the user's home directory
|
| 43 |
WORKDIR $HOME/app
|
| 44 |
-
|
| 45 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 46 |
COPY --chown=user . $HOME/app
|
| 47 |
|
|
|
|
| 36 |
SYSTEM=spaces
|
| 37 |
|
| 38 |
|
| 39 |
+
|
| 40 |
RUN pip3 install --no-cache-dir -U torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu113
|
| 41 |
RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 42 |
|
| 43 |
# Set the working directory to the user's home directory
|
| 44 |
WORKDIR $HOME/app
|
| 45 |
+
RUN ls -la /home
|
| 46 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 47 |
COPY --chown=user . $HOME/app
|
| 48 |
|
app.py
CHANGED
|
@@ -3,10 +3,9 @@ import os
|
|
| 3 |
from huggingface_hub import HfFileSystem
|
| 4 |
fs = HfFileSystem()
|
| 5 |
|
| 6 |
-
os.system(f"pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu113_pyt1121/download.html")
|
| 7 |
-
os.system(f"pip install tensorflow-gpu==2.8.1")
|
| 8 |
|
| 9 |
-
fs.ls("/home", detail=False)
|
| 10 |
# os.system(f"pip install ./freqencoder")
|
| 11 |
# os.system(f"pip install ./shencoder")
|
| 12 |
# os.system(f"pip install ./gridencoder")
|
|
|
|
| 3 |
from huggingface_hub import HfFileSystem
|
| 4 |
fs = HfFileSystem()
|
| 5 |
|
| 6 |
+
# os.system(f"pip install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu113_pyt1121/download.html")
|
| 7 |
+
# os.system(f"pip install tensorflow-gpu==2.8.1")
|
| 8 |
|
|
|
|
| 9 |
# os.system(f"pip install ./freqencoder")
|
| 10 |
# os.system(f"pip install ./shencoder")
|
| 11 |
# os.system(f"pip install ./gridencoder")
|