Spaces:
Paused
Paused
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # 1. Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git ffmpeg build-essential wget libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 2. Install Torch (CPU version) | |
| RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu | |
| # 3. Install the 400M Emotional Engine (F5-TTS) and requests | |
| RUN pip install --no-cache-dir f5-tts fastapi uvicorn python-multipart soundfile requests | |
| # 4. Copy server script | |
| COPY app.py . | |
| EXPOSE 7860 | |
| # Start server | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |