aboutsummaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
authorw-e-w <40751091+w-e-w@users.noreply.github.com>2023-06-06 02:47:18 +0900
committerw-e-w <40751091+w-e-w@users.noreply.github.com>2023-06-06 02:47:18 +0900
commiteaace155cebeb4e713fc6f232261eeed6b958736 (patch)
tree5eec203e8e68eca6b4282156bd587595c0908f90 /webui.py
parent1411a6e74b2fa07ecfc2117d774520f957651145 (diff)
restore old disable --autolaunch
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/webui.py b/webui.py
index 1ee0e41d..58482cf4 100644
--- a/webui.py
+++ b/webui.py
@@ -407,6 +407,9 @@ def webui():
if cmd_opts.add_stop_route:
app.add_route("/_stop", stop_route, methods=["POST"])
+ # after initial launch, disable --autolaunch for subsequent restarts
+ cmd_opts.autolaunch = False
+
startup_timer.record("gradio launch")
# gradio uses a very open CORS policy via app.user_middleware, which makes it possible for