added command line argument --autolaunch to open the webui URL in the system's default browser upon launch (implements #274)

This commit is contained in:
Connum
2022-09-18 21:00:46 +02:00
committed by AUTOMATIC1111
parent 8e3caace74
commit f3965cce01
2 changed files with 2 additions and 0 deletions

View File

@@ -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,
)