chaoxu commited on
Commit
3631bf4
1 Parent(s): 0bf6fa2

install fix

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -1
  2. 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.39.0
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"python3 -m pip install gradio_model3dcolor-0.0.1-py3-none-any.whl")
3
- os.system(f"python3 -m pip install gradio_model3dnormal-0.0.1-py3-none-any.whl")
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