aboutsummaryrefslogtreecommitdiffstats
path: root/launch.py
diff options
context:
space:
mode:
authorBruno Seoane <brunoseoaneamarillo@gmail.com>2022-11-04 19:40:13 +0000
committerBruno Seoane <brunoseoaneamarillo@gmail.com>2022-11-04 19:40:13 +0000
commitfd66f669ea25bad1409aec87ef14b8417009bddc (patch)
tree42348fb16d018920f6d7fc5970f6c54803ba5e72 /launch.py
parent31db25ecc8d9c3996e7bac00cc616ee12557b7d3 (diff)
parent89722fb5e4eda2adc5d3a6abf8babf8a58e80d69 (diff)
downloadstable-diffusion-webui-gfx803-fd66f669ea25bad1409aec87ef14b8417009bddc.tar.gz
stable-diffusion-webui-gfx803-fd66f669ea25bad1409aec87ef14b8417009bddc.tar.bz2
stable-diffusion-webui-gfx803-fd66f669ea25bad1409aec87ef14b8417009bddc.zip
Merge branch 'master' of https://github.com/AUTOMATIC1111/stable-diffusion-webui
Diffstat (limited to 'launch.py')
-rw-r--r--launch.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/launch.py b/launch.py
index ff2f74ba..2a51f20e 100644
--- a/launch.py
+++ b/launch.py
@@ -238,12 +238,15 @@ def tests(argv):
proc.kill()
-def start_webui():
- print(f"Launching Web UI with arguments: {' '.join(sys.argv[1:])}")
+def start():
+ print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with arguments: {' '.join(sys.argv[1:])}")
import webui
- webui.webui()
+ if '--nowebui' in sys.argv:
+ webui.api_only()
+ else:
+ webui.webui()
if __name__ == "__main__":
prepare_enviroment()
- start_webui()
+ start()