File size: 851 Bytes
0ce2c89
 
7c3a67d
 
 
 
 
 
 
 
 
c56f0a9
 
7c3a67d
0ce2c89
 
7c3a67d
0a08964
 
0ce2c89
 
 
 
c56f0a9
7c3a67d
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This docker compose is just to simulate a HF space in local machine!

FROM pytorch/pytorch:2.1.0-cuda12.1-cudnn8-devel
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
    apt-get install --no-install-recommends -y sox libsox-fmt-all curl wget gcc git git-lfs build-essential libaio-dev libsndfile1 ssh ffmpeg && \
    apt-get clean && apt-get -y autoremove

WORKDIR /app
COPY requirements.txt .
RUN python -m pip install  --verbose -r requirements.txt
RUN python -m pip cache purge

# RUN python -m unidic download
# RUN mkdir -p /app/tts_models

RUN python -m pip install spaces

COPY InstallFromReadme.sh .
COPY README.md .
RUN chmod +x InstallFromReadme.sh
RUN ./InstallFromReadme.sh

COPY xtts.py .
COPY app.py .

#Mark this 1 if you have older card
#ENV NVIDIA_DISABLE_REQUIRE=0

ENV NUM_THREADS=2
EXPOSE 80
CMD ["python","app.py"]