提交 18256c5f 编写于 作者: A AUTOMATIC1111

fix for #11478

上级 211c3398
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册