Spaces:
Paused
Paused
| FROM python:3.10-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # 1. Install the "Safe" foundation (Torch 2.0, Pyannote 3.1) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 2. FORCE install WhisperX without checking dependencies | |
| RUN pip install --no-deps git+https://github.com/m-bain/whisperx.git@v3.3.1 | |
| # 3. Manually install dependencies (PINNED) | |
| RUN pip install --no-cache-dir \ | |
| faster-whisper==1.1.0 \ | |
| transformers==4.35.2 \ | |
| tokenizers==0.15.0 \ | |
| nltk \ | |
| setuptools-rust | |
| COPY app.py . | |
| # --- CONFIGURATION UPDATES --- | |
| ENV STREAMLIT_SERVER_PORT=7860 | |
| ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 | |
| ENV STREAMLIT_SERVER_ENABLE_XSRF_PROTECTION=false | |
| # INCREASE UPLOAD LIMIT TO 5000 MB (5GB) | |
| ENV STREAMLIT_SERVER_MAX_UPLOAD_SIZE=5000 | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py"] |