Spaces:
Paused
Paused
Merge remote-tracking branch 'origin/main'
Browse files- .gitignore.txt +0 -7
- Dockerfile +4 -3
- webui.py +4 -4
.gitignore.txt
DELETED
@@ -1,7 +0,0 @@
|
|
1 |
-
venv
|
2 |
-
*.iml
|
3 |
-
*.xml
|
4 |
-
.idea
|
5 |
-
.DS_Store
|
6 |
-
__pycache__/createlookalike.cpython-39.pyc
|
7 |
-
*.pyc
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Dockerfile
CHANGED
@@ -16,10 +16,11 @@ RUN pip3 install --upgrade pip
|
|
16 |
RUN pip install --pre triton
|
17 |
RUN pip install numexpr torchmetrics==0.11.4
|
18 |
|
|
|
|
|
19 |
set COMMANDLINE_ARGS=--api
|
20 |
-
|
21 |
|
22 |
-
EXPOSE 7860
|
23 |
|
24 |
|
25 |
-
CMD python webui.py --xformers --listen --disable-console-progressbars --enable-console-prompts --no-progressbar-hiding --ui-config-file
|
|
|
16 |
RUN pip install --pre triton
|
17 |
RUN pip install numexpr torchmetrics==0.11.4
|
18 |
|
19 |
+
EXPOSE 7860
|
20 |
+
|
21 |
set COMMANDLINE_ARGS=--api
|
22 |
+
CMD python launch.py --skip-torch-cuda-test --num_cpu_threads_per_process=6 --api
|
23 |
|
|
|
24 |
|
25 |
|
26 |
+
CMD python webui.py --xformers --listen --disable-console-progressbars --enable-console-prompts --no-progressbar-hiding --ui-config-file --api
|
webui.py
CHANGED
@@ -156,7 +156,7 @@ def webui():
|
|
156 |
if __name__ == "__main__":
|
157 |
from modules.shared_cmd_options import cmd_opts
|
158 |
|
159 |
-
if cmd_opts.nowebui:
|
160 |
-
|
161 |
-
else:
|
162 |
-
|
|
|
156 |
if __name__ == "__main__":
|
157 |
from modules.shared_cmd_options import cmd_opts
|
158 |
|
159 |
+
# if cmd_opts.nowebui:
|
160 |
+
api_only()
|
161 |
+
# else:
|
162 |
+
# webui()
|