jashp2323's picture
feat: deploy production voice agent with automated multi-call scheduling
d446616
Raw History Blame Contribute Delete
894 Bytes
import sys
import io
if sys.platform == 'win32':
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace')
sys.stderr = io.TextIOWrapper(sys.stderr.buffer, encoding='utf-8', errors='replace')
import uvicorn
from app.config import SERVER_HOST, SERVER_PORT
if __name__ == "__main__":
print(r"""
_____ _ ______
/ ____| | | ____|
| (___ | |__ ___ _ __ | |__ __ _ ___ ___
\___ \| '_ \ / _ \| '_ \| __| / _` / __|/ _ \
____) | | | | (_) | |_) | |___| (_| \__ \ __/
|_____/|_| |_|\___/| .__/|______\__,_|___/\___|
|_|
""")
uvicorn.run(
"app.main:app",
host=SERVER_HOST,
port=SERVER_PORT,
reload=False,
log_level="info",
ws_ping_interval=60,
ws_ping_timeout=120,
)