Spaces:
Running
Running
| FROM python:3.10-slim | |
| # Unbuffered stdout/stderr so app print() logs appear in the HF container log in | |
| # REAL TIME. Without this, Python block-buffers stdout in Docker and the pipeline's | |
| # progress lines only flush when a request finishes — making the log look frozen | |
| # mid-request and hiding where a slow/stuck turn actually is. | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| # 🔹 REQUIRED for Whisper (audio decoding) | |
| RUN apt-get update && \ | |
| apt-get install -y ffmpeg && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # copy the rest of your code | |
| COPY . . | |
| # run your FastAPI app | |
| CMD ["uvicorn", "app:APP", "--host", "0.0.0.0", "--port", "7860"] | |