AfriHealth / start.sh
sirlaw-dev's picture
Create start.sh
f6d1168 verified
Raw
History Blame Contribute Delete
389 Bytes
#!/bin/bash
# Pre-download model if not already present
python -c "
from transformers import WhisperProcessor, WhisperForConditionalGeneration
WhisperProcessor.from_pretrained('NCAIR1/Yoruba-ASR')
WhisperForConditionalGeneration.from_pretrained('NCAIR1/Yoruba-ASR', low_cpu_mem_usage=True)
print('Model ready!')
"
# Start the server
uvicorn main:app --host 0.0.0.0 --port 7860 --workers 1