Spaces:
Sleeping
Sleeping
Commit ·
e9046c4
1
Parent(s): ba05dcb
update
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -10,8 +10,8 @@ RUN conda env create -f /code/environment.yml
|
|
| 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
|
| 16 |
# RUN conda run -n gradio pip install controlnet-aux
|
| 17 |
# RUN conda install -n gradio pytorch3d -c pytorch3d -c conda-forge
|
|
@@ -40,6 +40,7 @@ ENV HOME=/home/user \
|
|
| 40 |
GRADIO_ALLOW_FLAGGING=never \
|
| 41 |
GRADIO_NUM_PORTS=1 \
|
| 42 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
|
|
|
| 43 |
GRADIO_THEME=huggingface \
|
| 44 |
SYSTEM=spaces
|
| 45 |
# Set the working directory to the user's home directory
|
|
|
|
| 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
|
| 16 |
# RUN conda run -n gradio pip install controlnet-aux
|
| 17 |
# RUN conda install -n gradio pytorch3d -c pytorch3d -c conda-forge
|
|
|
|
| 40 |
GRADIO_ALLOW_FLAGGING=never \
|
| 41 |
GRADIO_NUM_PORTS=1 \
|
| 42 |
GRADIO_SERVER_NAME=0.0.0.0 \
|
| 43 |
+
GRADIO_SERVER_PORT=7861 \
|
| 44 |
GRADIO_THEME=huggingface \
|
| 45 |
SYSTEM=spaces
|
| 46 |
# Set the working directory to the user's home directory
|