aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2022-11-04 08:03:02 +0000
committerGitHub <noreply@github.com>2022-11-04 08:03:02 +0000
commit91c7659dc2ec107a4375506584273e56f94943d9 (patch)
tree39217c97d0a9dda286c320dcedf582b78939f6bc
parent9b2ca18a5d12727f5e45104d02d118b684d161e5 (diff)
parent688aa2c9c1ce6cf65c43b6113411a185e294412b (diff)
downloadstable-diffusion-webui-gfx803-91c7659dc2ec107a4375506584273e56f94943d9.tar.gz
stable-diffusion-webui-gfx803-91c7659dc2ec107a4375506584273e56f94943d9.tar.bz2
stable-diffusion-webui-gfx803-91c7659dc2ec107a4375506584273e56f94943d9.zip
Merge pull request #4201 from aliencaocao/fix_nowebui_arg
Fix nowebui arg being ignored
-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()