read external ips with fallback to standard notation 0.0.0.0

This commit is contained in:
Roland Tannous 2026-02-13 10:28:20 +00:00
commit e9bf6ae368
2 changed files with 52 additions and 16 deletions

View file

@ -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,