We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 83c0758 commit f0e2e8bCopy full SHA for f0e2e8b
webui.py
@@ -39,7 +39,7 @@ def api_only():
39
40
print(f"Startup time: {startup_timer.summary()}.")
41
api.launch(
42
- server_name=cmd_opts.server_name or ("0.0.0.0" if cmd_opts.listen else "127.0.0.1"),
+ server_name=initialize_util.gradio_server_name(),
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