diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-08 11:58:33 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-08 11:58:33 +0000 |
commit | 18256c5f0174126cb103afece2b39b6b831e034a (patch) | |
tree | 1831e4793ae6845b2ef450b1bb8111dc5bcfac58 | |
parent | 211c3398f64b56a9297e831f4662b483793760d6 (diff) | |
download | stable-diffusion-webui-gfx803-18256c5f0174126cb103afece2b39b6b831e034a.tar.gz stable-diffusion-webui-gfx803-18256c5f0174126cb103afece2b39b6b831e034a.tar.bz2 stable-diffusion-webui-gfx803-18256c5f0174126cb103afece2b39b6b831e034a.zip |
fix for #11478
-rw-r--r-- | webui.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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
|