PhoWhisperBaseAPI / start.sh
bichnhan2701's picture
Update Phowhisper services logic
7158b5e
raw
history blame contribute delete
297 Bytes
#!/bin/bash
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