Spaces:
Runtime error
Runtime error
| # Dockerfile for Hugging Face CPU Space | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git ffmpeg espeak-ng \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt && \ | |
| pip install --no-cache-dir "ctranslate2>=4.3.1" "faster-whisper>=1.0.3" gunicorn | |
| COPY . . | |
| EXPOSE 7860 | |
| ENV ASR_MODEL_ID="Systran/faster-distil-whisper-large-v3" | |
| ENV CT2_USE_CUDA="0" | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "--workers", "1", "--timeout", "120", "home.chezy.golem_flask_server:app"] | |