aboutsummaryrefslogtreecommitdiffstats
path: root/webui.py
diff options
context:
space:
mode:
authorkurisu_u <73207840+lanyeeee@users.noreply.github.com>2023-12-30 13:47:59 +0000
committerGitHub <noreply@github.com>2023-12-30 13:47:59 +0000
commitd05f9e8124160d5ef6fcea6523585f613f375fac (patch)
treec2898250b3f96ccf791c9b4ebf7faf7f12f1a128 /webui.py
parentc069c2c5628728c9506dd034ef98e6335fd5bb34 (diff)
parentadcd65ba3493fc91c9d7c843d7e14275ad6fd881 (diff)
downloadstable-diffusion-webui-gfx803-d05f9e8124160d5ef6fcea6523585f613f375fac.tar.gz
stable-diffusion-webui-gfx803-d05f9e8124160d5ef6fcea6523585f613f375fac.tar.bz2
stable-diffusion-webui-gfx803-d05f9e8124160d5ef6fcea6523585f613f375fac.zip
Merge branch 'dev' into api_thread_safe
Diffstat (limited to 'webui.py')
-rw-r--r--webui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/webui.py b/webui.py
index 9ed20b30..2c417168 100644
--- a/webui.py
+++ b/webui.py
@@ -39,7 +39,7 @@ def api_only():
print(f"Startup time: {startup_timer.summary()}.")
api.launch(
- server_name="0.0.0.0" if cmd_opts.listen else "127.0.0.1",
+ server_name=initialize_util.gradio_server_name(),
port=cmd_opts.port if cmd_opts.port else 7861,
root_path=f"/{cmd_opts.subpath}" if cmd_opts.subpath else ""
)