Spaces:
Build error
Build error
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN apt-get update | |
| build-essential \ | |
| ffmpeg \ | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN python -c "from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq; \ | |
| processor = AutoProcessor.from_pretrained('nyrahealth/CrisperWhisper'); \ | |
| model = AutoModelForSpeechSeq2Seq.from_pretrained('nyrahealth/CrisperWhisper')" | |
| COPY app.py . | |
| ENV PORT=8080 | |
| CMD exec uvicorn app:app --host 0.0.0.0 --port $PORT --workers 4 |