Spaces:
Configuration error
Configuration error
| FROM python:3.11-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Copy requirements first | |
| COPY requirements.txt . | |
| # Install PyTorch and numpy first | |
| RUN pip install --no-cache-dir torch==2.0.1 --index-url https://download.pytorch.org/whl/cpu | |
| RUN pip install --no-cache-dir numpy==1.24.3 | |
| # Install other requirements | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Install whisper DIRECTLY from GitHub (THIS IS THE KEY) | |
| RUN pip install --no-cache-dir git+https://github.com/openai/whisper.git | |
| # Copy application files | |
| COPY . . | |
| # Create necessary directories | |
| RUN mkdir -p uploads processed | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |