aboutsummaryrefslogtreecommitdiff
path: root/webui.py
diff options
context:
space:
mode:
authorAUTOMATIC1111 <16777216c@gmail.com>2023-07-27 09:02:22 +0300
committerAUTOMATIC1111 <16777216c@gmail.com>2023-07-27 09:02:22 +0300
commit68f336bd994bed5442ad95bad6b6ad5564a5409a (patch)
treec49a1dabb84c89d2c5dbac61ea67042ea01d0e76 /webui.py
parenta3ddf464a2ed24c999f67ddfef7969f8291567be (diff)
parent50973ec77c297edc3b3c581e871b970dde1af8ba (diff)
Merge branch 'release_candidate'
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/webui.py b/webui.py
index 2aafc09f..6bf06854 100644
--- a/webui.py
+++ b/webui.py
@@ -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={