aboutsummaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
authorConnum <connum@gmail.com>2022-09-18 21:00:46 +0200
committerAUTOMATIC1111 <16777216c@gmail.com>2022-09-18 22:39:34 +0300
commitf3965cce01fc1d39cc5b9cde8ea3d74467ade8f8 (patch)
tree64d159f707fc64490b80a252b4805c5a8d2d3e4b /webui.py
parent8e3caace7445f8373c950edb6e414c4cdc75823b (diff)
added command line argument --autolaunch to open the webui URL in the system's default browser upon launch (implements #274)
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/webui.py b/webui.py
index ff8997db..81ed1df4 100644
--- a/webui.py
+++ b/webui.py
@@ -89,6 +89,7 @@ def webui():
server_port=cmd_opts.port,
debug=cmd_opts.gradio_debug,
auth=[tuple(cred.split(':')) for cred in cmd_opts.gradio_auth.strip('"').split(',')] if cmd_opts.gradio_auth else None,
+ inbrowser=cmd_opts.autolaunch,
)