Unverified Commit 91c7659d authored by AUTOMATIC1111's avatar AUTOMATIC1111 Committed by GitHub

Merge pull request #4201 from aliencaocao/fix_nowebui_arg

Fix nowebui arg being ignored
parents 9b2ca18a 688aa2c9
...@@ -238,12 +238,15 @@ def tests(argv): ...@@ -238,12 +238,15 @@ def tests(argv):
proc.kill() proc.kill()
def start_webui(): def start():
print(f"Launching Web UI with arguments: {' '.join(sys.argv[1:])}") print(f"Launching {'API server' if '--nowebui' in sys.argv else 'Web UI'} with arguments: {' '.join(sys.argv[1:])}")
import webui import webui
if '--nowebui' in sys.argv:
webui.api_only()
else:
webui.webui() webui.webui()
if __name__ == "__main__": if __name__ == "__main__":
prepare_enviroment() prepare_enviroment()
start_webui() start()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment