diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2022-11-04 08:03:02 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-04 08:03:02 +0000 |
commit | 91c7659dc2ec107a4375506584273e56f94943d9 (patch) | |
tree | 39217c97d0a9dda286c320dcedf582b78939f6bc | |
parent | 9b2ca18a5d12727f5e45104d02d118b684d161e5 (diff) | |
parent | 688aa2c9c1ce6cf65c43b6113411a185e294412b (diff) | |
download | stable-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.py | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -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()
|