Spaces:
Sleeping
Sleeping
Commit
·
8883da9
1
Parent(s):
7930882
update
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -7,9 +7,13 @@ COPY ./environment.yml /code/environment.yml
|
|
7 |
RUN conda env create -f /code/environment.yml
|
8 |
|
9 |
# install pip packages to the gradio environment
|
|
|
|
|
|
|
10 |
RUN conda run -n gradio pip install --upgrade pip
|
11 |
RUN conda run -n gradio pip install diffusers["torch"] transformers accelerate xformers
|
12 |
-
RUN conda run -n gradio pip install gradio
|
|
|
13 |
|
14 |
# Set the environment variable to use the gradio environment by default
|
15 |
RUN echo "source activate gradio" > ~/.bashrc
|
|
|
7 |
RUN conda env create -f /code/environment.yml
|
8 |
|
9 |
# install pip packages to the gradio environment
|
10 |
+
# when adjusting the dockerfile on huggingface:
|
11 |
+
# - if the dockerfile is successfully compileds, a new space need to be initialized and push the changes accordingly
|
12 |
+
# - otherwise, you can commit to the failed build dockerfile for debugging
|
13 |
RUN conda run -n gradio pip install --upgrade pip
|
14 |
RUN conda run -n gradio pip install diffusers["torch"] transformers accelerate xformers
|
15 |
+
RUN conda run -n gradio pip install gradio controlnet-aux
|
16 |
+
RUN conda install -n gradio pytorch3d -c pytorch3d -c conda-forge
|
17 |
|
18 |
# Set the environment variable to use the gradio environment by default
|
19 |
RUN echo "source activate gradio" > ~/.bashrc
|