Spaces:
Running
Running
| # Use Python 3.9 | |
| FROM python:3.9 | |
| # Install FFmpeg for audio processing | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| # Set permissions for AI model caching | |
| WORKDIR /code | |
| RUN mkdir -p /code/cache | |
| ENV XDG_CACHE_HOME=/code/cache | |
| ENV HF_HOME=/code/cache | |
| RUN chmod 777 /code/cache | |
| # Install Python dependencies | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Copy App Code | |
| COPY . /code | |
| # Start Server | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |