We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d603eb + 0d5941e commit 83c0758Copy full SHA for 83c0758
webui.py
@@ -39,7 +39,7 @@ def api_only():
39
40
print(f"Startup time: {startup_timer.summary()}.")
41
api.launch(
42
- server_name="0.0.0.0" if cmd_opts.listen else "127.0.0.1",
+ server_name=cmd_opts.server_name or ("0.0.0.0" if cmd_opts.listen else "127.0.0.1"),
43
port=cmd_opts.port if cmd_opts.port else 7861,
44
root_path=f"/{cmd_opts.subpath}" if cmd_opts.subpath else ""
45
)
0 commit comments