mirror of
https://github.com/AUTOMATIC1111/stable-diffusion-webui.git
synced 2026-01-30 12:22:26 -08:00
fix for #11478
This commit is contained in:
parent
211c3398f6
commit
18256c5f01
1 changed files with 2 additions and 2 deletions
4
webui.py
4
webui.py
|
|
@ -43,7 +43,7 @@ warnings.filterwarnings(action="ignore", category=UserWarning, module="torchvisi
|
|||
|
||||
startup_timer.record("import torch")
|
||||
|
||||
import gradio
|
||||
import gradio # noqa: F401
|
||||
startup_timer.record("import gradio")
|
||||
|
||||
import ldm.modules.encoders.modules # noqa: F401
|
||||
|
|
@ -413,7 +413,7 @@ def webui():
|
|||
"docs_url": "/docs",
|
||||
"redoc_url": "/redoc",
|
||||
},
|
||||
root_path = f"/{cmd_opts.subpath}",
|
||||
root_path=f"/{cmd_opts.subpath}" if cmd_opts.subpath else "",
|
||||
)
|
||||
|
||||
# after initial launch, disable --autolaunch for subsequent restarts
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue