gigscan_basic / app.py
kieranadair's picture
Update app.py
dd1ca24 verified
Raw
History Blame Contribute Delete
464 Bytes
import traceback
from gigscan.logging_utils import log
from gigscan.model_client import warmup_model
from gigscan.server import start_llama_server
from gigscan.ui_blocks import build_app
try:
start_llama_server()
warmup_model()
app = build_app()
except Exception:
error_text = traceback.format_exc()
log("STARTUP FAILED")
log(error_text)
app = build_app(startup_error=error_text)
app.launch(server_name="0.0.0.0", server_port=7860)