From f3965cce01fc1d39cc5b9cde8ea3d74467ade8f8 Mon Sep 17 00:00:00 2001 From: Connum Date: Sun, 18 Sep 2022 21:00:46 +0200 Subject: added command line argument --autolaunch to open the webui URL in the system's default browser upon launch (implements #274) --- webui.py | 1 + 1 file changed, 1 insertion(+) (limited to 'webui.py') 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, ) -- cgit v1.2.1