read external ips with fallback to standard notation 0.0.0.0
This commit is contained in:
parent
afa7b3657f
commit
e9bf6ae368
2 changed files with 52 additions and 16 deletions
|
|
@ -15,7 +15,9 @@ def ui(
|
|||
from studio.backend.run import run_server
|
||||
|
||||
if not silent:
|
||||
typer.echo(f"Starting Unsloth UI on http://{host}:{port}")
|
||||
from studio.backend.run import _resolve_external_ip
|
||||
display_host = _resolve_external_ip() if host == "0.0.0.0" else host
|
||||
typer.echo(f"Starting Unsloth Studio on http://{display_host}:{port}")
|
||||
|
||||
run_server(
|
||||
host=host,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue