Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
@@ -51,6 +51,8 @@ RUN git clone https://github.com/lllyasviel/Fooocus . && \
|
|
51 |
pip install --no-cache-dir xformers==0.0.20 triton==2.0.0 torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118 && \
|
52 |
pip install --no-cache-dir -r requirements_versions.txt
|
53 |
|
|
|
|
|
54 |
# remove the next line if you're running on your own GPU, it set max images to 3 and disables the API
|
55 |
RUN sed -i "s|image_number = gr.Slider(label='Image Number', minimum=1, maximum=32|image_number = gr.Slider(label='Image Number', minimum=1, maximum=3|" webui.py && \
|
56 |
sed -i "s|shared.gradio_root = gr.Blocks(title='Fooocus ' + fooocus_version.version, css=modules.html.css).queue()|shared.gradio_root = gr.Blocks(title='Fooocus ' + fooocus_version.version, css=modules.html.css).queue(concurrency_count=1,api_open=False)|" webui.py && \
|
|
|
51 |
pip install --no-cache-dir xformers==0.0.20 triton==2.0.0 torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118 && \
|
52 |
pip install --no-cache-dir -r requirements_versions.txt
|
53 |
|
54 |
+
RUN auth_enabled = TRUE
|
55 |
+
|
56 |
# remove the next line if you're running on your own GPU, it set max images to 3 and disables the API
|
57 |
RUN sed -i "s|image_number = gr.Slider(label='Image Number', minimum=1, maximum=32|image_number = gr.Slider(label='Image Number', minimum=1, maximum=3|" webui.py && \
|
58 |
sed -i "s|shared.gradio_root = gr.Blocks(title='Fooocus ' + fooocus_version.version, css=modules.html.css).queue()|shared.gradio_root = gr.Blocks(title='Fooocus ' + fooocus_version.version, css=modules.html.css).queue(concurrency_count=1,api_open=False)|" webui.py && \
|