diff options
author | papuSpartan <30642826+papuSpartan@users.noreply.github.com> | 2022-10-21 13:53:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-21 13:53:32 -0500 |
commit | 4a9ff0891abc413031b44926372f611513b4810f (patch) | |
tree | f7622454a45669b13bce691e312f2c9dcfd9fb8a /webui.py | |
parent | a3b047b7c74dc6ca07f40aee778997fc1889d72f (diff) | |
parent | f49c08ea566385db339c6628f65c3a121033f67c (diff) |
Merge branch 'AUTOMATIC1111:master' into master
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -118,7 +118,8 @@ def api_only(): api.launch(server_name="0.0.0.0" if cmd_opts.listen else "127.0.0.1", port=cmd_opts.port if cmd_opts.port else 7861)
-def webui(launch_api=False):
+def webui():
+ launch_api = cmd_opts.api
initialize()
while 1:
@@ -158,4 +159,4 @@ if __name__ == "__main__": if cmd_opts.nowebui:
api_only()
else:
- webui(cmd_opts.api)
+ webui()
|