mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2025-08-08 05:12:35 +00:00
restore old disable --autolaunch
This commit is contained in:
3
webui.py
3
webui.py
@@ -407,6 +407,9 @@ def webui():
|
|||||||
if cmd_opts.add_stop_route:
|
if cmd_opts.add_stop_route:
|
||||||
app.add_route("/_stop", stop_route, methods=["POST"])
|
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")
|
startup_timer.record("gradio launch")
|
||||||
|
|
||||||
# gradio uses a very open CORS policy via app.user_middleware, which makes it possible for
|
# gradio uses a very open CORS policy via app.user_middleware, which makes it possible for
|
||||||
|
Reference in New Issue
Block a user