Skip to content

Commit f0e2e8b

Browse files
committed
1 parent 83c0758 commit f0e2e8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webui.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def api_only():
3939

4040
print(f"Startup time: {startup_timer.summary()}.")
4141
api.launch(
42-
server_name=cmd_opts.server_name or ("0.0.0.0" if cmd_opts.listen else "127.0.0.1"),
42+
server_name=initialize_util.gradio_server_name(),
4343
port=cmd_opts.port if cmd_opts.port else 7861,
4444
root_path=f"/{cmd_opts.subpath}" if cmd_opts.subpath else ""
4545
)

0 commit comments

Comments
 (0)