aboutsummaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
authorpapuSpartan <30642826+papuSpartan@users.noreply.github.com>2022-10-21 13:53:32 -0500
committerGitHub <noreply@github.com>2022-10-21 13:53:32 -0500
commit4a9ff0891abc413031b44926372f611513b4810f (patch)
treef7622454a45669b13bce691e312f2c9dcfd9fb8a /webui.py
parenta3b047b7c74dc6ca07f40aee778997fc1889d72f (diff)
parentf49c08ea566385db339c6628f65c3a121033f67c (diff)
Merge branch 'AUTOMATIC1111:master' into master
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/webui.py b/webui.py
index 177bef74..87589064 100644
--- a/webui.py
+++ b/webui.py
@@ -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()