File size: 439 Bytes
edb671a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
"""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)