Spaces:
Sleeping
Sleeping
Download start.sh from bichnhan2701/PhoWhisperBaseAPI: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/spaces/bichnhan2701/PhoWhisperBaseAPI/resolve/main/start.sh
- Command line
-
hf download hf://spaces/bichnhan2701/PhoWhisperBaseAPI/start.sh
-
curl -L -o start.sh https://huggingface.co/spaces/bichnhan2701/PhoWhisperBaseAPI/resolve/main/start.sh
297 Bytes
| set -e | |
| echo "Starting Redis..." | |
| redis-server --daemonize yes --save "" --appendonly no | |
| sleep 2 | |
| echo "Starting RQ worker..." | |
| rq worker asr --url redis://127.0.0.1:6379 & | |
| WORKER_PID=$! | |
| echo "Starting FastAPI..." | |
| uvicorn app.main:app --host 0.0.0.0 --port ${PORT} & | |
| wait $WORKER_PID | |