Spaces:
Build error
Build error
| FROM python:3.9 | |
| WORKDIR /code | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| libsndfile1 \ | |
| portaudio19-dev \ | |
| python3-pyaudio \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY ./requirements.txt /code/requirements.txt | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy application files | |
| COPY ./app.py /code/app.py | |
| COPY ./templates /code/templates | |
| COPY ./models /code/models | |
| # Make port 7860 available | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["python", "app.py"] |