Skip to content

Commit

Permalink
chore: flag
Browse files Browse the repository at this point in the history
  • Loading branch information
FL33TW00D committed Sep 17, 2024
1 parent 91dc799 commit e64bd8a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions moshi_mlx/moshi_mlx/local_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,9 @@ async def handle_root(_):
await runner.setup()
site = web.TCPSite(runner, args.host, args.port)

log("info", f"opening browser at http://{args.host}:{args.port}")
webbrowser.open(f"http://{args.host}:{args.port}")
if not args.no_browser:
log("info", f"opening browser at http://{args.host}:{args.port}")
webbrowser.open(f"http://{args.host}:{args.port}")

await asyncio.gather(
recv_loop(), send_loop(), recv_loop2(), send_loop2(), site.start()
Expand All @@ -361,6 +362,7 @@ def main():
parser.add_argument("--static", type=str)
parser.add_argument("--host", default="localhost", type=str)
parser.add_argument("--port", default=8998, type=int)
parser.add_argument("--no-browser", action="store_true")

args = parser.parse_args()

Expand Down

0 comments on commit e64bd8a

Please sign in to comment.