Spaces:
Running
Running
install fix
Browse files- Dockerfile +4 -1
- launch.py +2 -2
Dockerfile
CHANGED
|
@@ -8,7 +8,7 @@ RUN pip3 install --no-cache-dir \
|
|
| 8 |
numpy \
|
| 9 |
trimesh \
|
| 10 |
Pillow \
|
| 11 |
-
gradio==4.
|
| 12 |
|
| 13 |
# Set up a new user named "user" with user ID 1000
|
| 14 |
RUN useradd -m -u 1000 user
|
|
@@ -25,4 +25,7 @@ WORKDIR $HOME/app
|
|
| 25 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 26 |
COPY --chown=user . $HOME/app
|
| 27 |
|
|
|
|
|
|
|
|
|
|
| 28 |
CMD ["python3", "launch.py"]
|
|
|
|
| 8 |
numpy \
|
| 9 |
trimesh \
|
| 10 |
Pillow \
|
| 11 |
+
gradio==4.40.0
|
| 12 |
|
| 13 |
# Set up a new user named "user" with user ID 1000
|
| 14 |
RUN useradd -m -u 1000 user
|
|
|
|
| 25 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
| 26 |
COPY --chown=user . $HOME/app
|
| 27 |
|
| 28 |
+
RUN pip3 install gradio_model3dcolor-0.0.1-py3-none-any.whl
|
| 29 |
+
RUN pip3 install gradio_model3dnormal-0.0.1-py3-none-any.whl
|
| 30 |
+
|
| 31 |
CMD ["python3", "launch.py"]
|
launch.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import os
|
| 2 |
-
os.system(f"
|
| 3 |
-
os.system(f"
|
| 4 |
import sys
|
| 5 |
import json
|
| 6 |
import uuid
|
|
|
|
| 1 |
import os
|
| 2 |
+
# os.system(f"pip install gradio_model3dcolor-0.0.1-py3-none-any.whl")
|
| 3 |
+
# os.system(f"pip install gradio_model3dnormal-0.0.1-py3-none-any.whl")
|
| 4 |
import sys
|
| 5 |
import json
|
| 6 |
import uuid
|