diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-27 09:02:22 +0300 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-27 09:02:22 +0300 |
commit | 68f336bd994bed5442ad95bad6b6ad5564a5409a (patch) | |
tree | c49a1dabb84c89d2c5dbac61ea67042ea01d0e76 /webui.py | |
parent | a3ddf464a2ed24c999f67ddfef7969f8291567be (diff) | |
parent | 50973ec77c297edc3b3c581e871b970dde1af8ba (diff) |
Merge branch 'release_candidate'
Diffstat (limited to 'webui.py')
-rw-r--r-- | webui.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -374,7 +374,7 @@ def api_only(): api.launch(
server_name="0.0.0.0" if cmd_opts.listen else "127.0.0.1",
port=cmd_opts.port if cmd_opts.port else 7861,
- root_path = f"/{cmd_opts.subpath}"
+ root_path=f"/{cmd_opts.subpath}" if cmd_opts.subpath else ""
)
@@ -407,7 +407,7 @@ def webui(): ssl_verify=cmd_opts.disable_tls_verify,
debug=cmd_opts.gradio_debug,
auth=gradio_auth_creds,
- inbrowser=cmd_opts.autolaunch and os.getenv('SD_WEBUI_RESTARTING ') != '1',
+ inbrowser=cmd_opts.autolaunch and os.getenv('SD_WEBUI_RESTARTING') != '1',
prevent_thread_lock=True,
allowed_paths=cmd_opts.gradio_allowed_path,
app_kwargs={
|