Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y ffmpeg git && rm -rf /var/lib/apt/lists/* | |
| RUN git clone https://github.com/CorentinJ/Real-Time-Voice-Cloning.git /tmp/vc | |
| RUN cp -r /tmp/vc/encoder /app/ && \ | |
| cp -r /tmp/vc/synthesizer /app/ && \ | |
| cp -r /tmp/vc/vocoder /app/ && \ | |
| cp -r /tmp/vc/utils /app/ && \ | |
| rm -rf /tmp/vc | |
| RUN pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu | |
| RUN pip install --no-cache-dir librosa==0.9.2 matplotlib numpy scipy numba inflect==5.6.2 unidecode Pillow soundfile flask flask-cors python-dotenv gradio speechbrain | |
| COPY app.py /app/app.py | |
| COPY saved_models /app/saved_models | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |