File size: 747 Bytes
9cc8c72
 
 
 
80f2c88
9cc8c72
aa9e411
 
 
 
 
 
adaf50e
9cc8c72
 
c8b43c1
c79049c
4de3c5b
adaf50e
 
 
9cc8c72
 
38b0054
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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"]