Spaces:
Paused
Paused
Download run.py from jashp2323/call-voice-agent: direct link, hf CLI and curl.
- Browser
- Download file 894 Bytes
-
https://huggingface.co/spaces/jashp2323/call-voice-agent/resolve/main/run.py
- Command line
-
hf download hf://spaces/jashp2323/call-voice-agent/run.py
-
curl -L -o run.py https://huggingface.co/spaces/jashp2323/call-voice-agent/resolve/main/run.py
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, | |
| ) | |