diff options
author | catalpaaa <caojingzifang@gmail.com> | 2023-04-25 14:27:24 +0000 |
---|---|---|
committer | catalpaaa <caojingzifang@gmail.com> | 2023-04-25 14:27:24 +0000 |
commit | b2f6e0704e178f64881f507f3a48ff36e63e1a62 (patch) | |
tree | 1ec84318fdb6083fec0bdbe1eb23524e00d3057a /webui.py | |
parent | 22bcc7be428c94e9408f589966c2040187245d81 (diff) | |
download | stable-diffusion-webui-gfx803-b2f6e0704e178f64881f507f3a48ff36e63e1a62.tar.gz stable-diffusion-webui-gfx803-b2f6e0704e178f64881f507f3a48ff36e63e1a62.tar.bz2 stable-diffusion-webui-gfx803-b2f6e0704e178f64881f507f3a48ff36e63e1a62.zip |
add subpath support
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -290,6 +290,11 @@ def webui(): print(f"Startup time: {startup_timer.summary()}.")
+ if cmd_opts.subpath:
+ redirector = FastAPI()
+ redirector.get("/")
+ mounted_app = gradio.mount_gradio_app(redirector, shared.demo, path=f"/{cmd_opts.subpath}")
+
wait_on_server(shared.demo)
print('Restarting UI...')
|