Spaces:
Running
Running
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Dépendances système pour audio/ffmpeg | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| libsndfile1 \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Installer les dépendances Python | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Pré-charger le modèle Silero VAD (évite le téléchargement au runtime) | |
| RUN python -c "from livekit.plugins import silero; silero.VAD.load()" || true | |
| # Pré-charger le modèle Whisper medium | |
| RUN python -c "from faster_whisper import WhisperModel; WhisperModel('medium', device='cpu', compute_type='int8')" || true | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py", "--port", "7860"] | |