Spaces:
Sleeping
Sleeping
| # 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 |