Spaces:
Runtime error
Runtime error
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # System deps | |
| RUN apt-get update -qq && apt-get install -y -qq ffmpeg libsndfile1 sox git && rm -rf /var/lib/apt/lists/* | |
| # Python deps | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Download models at build time (cached in image) | |
| COPY download_models.py . | |
| RUN python3 download_models.py | |
| # App | |
| COPY app.py . | |
| EXPOSE 8000 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"] | |