diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-05-02 08:01:27 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 08:01:27 +0000 |
commit | 4b6808f6ed77d2dd7ce0efb5005f28d5f55a9db7 (patch) | |
tree | f046eca53975a72f603e68ed14a2e50341753427 /webui.py | |
parent | 4499bead4c1a20cac94f5411f7ba343f663bd415 (diff) | |
parent | 9eb5b3e90f1775af81c828f19e7caded70ba8884 (diff) | |
download | stable-diffusion-webui-gfx803-4b6808f6ed77d2dd7ce0efb5005f28d5f55a9db7.tar.gz stable-diffusion-webui-gfx803-4b6808f6ed77d2dd7ce0efb5005f28d5f55a9db7.tar.bz2 stable-diffusion-webui-gfx803-4b6808f6ed77d2dd7ce0efb5005f28d5f55a9db7.zip |
Merge pull request #9865 from catalpaaa/subpath-support
add subpath support
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -344,6 +344,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...')
|