"""Launcher for pythonw (no console window, stays alive).""" import os, sys, time os.environ["SOUNDBROKEN_MOCK"] = "1" sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) import gradio as gr from app import demo print("[launcher] Starting on http://127.0.0.1:7882", flush=True) demo.launch(server_port=7882, server_name="0.0.0.0", show_error=True) print("[launcher] Server is up", flush=True) while True: time.sleep(30)