restore old disable --autolaunch

This commit is contained in:
w-e-w 2023-06-06 02:47:18 +09:00
parent 1411a6e74b
commit eaace155ce

View File

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