Munzali commited on
Commit
ce78089
1 Parent(s): 20fa4c7

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -51,7 +51,11 @@ 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
- 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 && \
 
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
+
55
+ RUN sed -i 's/def auth_list_to_dict(.*)/def auth_list_to_dict\1\n pass/' modules/auth.py
56
+ RUN sed -i 's/def load_auth_data(.*)/def load_auth_data\1\n pass/' modules/auth.py
57
+ RUN sed -i 's/def check_auth(.*)/def check_auth\1\n pass/' modules/auth.py
58
+
59
 
60
  # remove the next line if you're running on your own GPU, it set max images to 3 and disables the API
61
  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 && \