tts / Dockerfile
okewunmi's picture
Create Dockerfile
5155c90 verified
raw
history blame
889 Bytes
FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
git \
wget \
&& rm -rf /var/lib/apt/lists/*
# Copy requirements file
COPY requirements.txt .
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Clone the YarnGPT repository
RUN git clone https://github.com/saheedniyi02/yarngpt.git
# Download model files
RUN wget -nc https://huggingface.co/novateur/WavTokenizer-medium-speech-75token/resolve/main/wavtokenizer_mediumdata_frame75_3s_nq1_code4096_dim512_kmeans200_attn.yaml
RUN wget -nc https://huggingface.co/novateur/WavTokenizer-large-speech-75token/resolve/main/wavtokenizer_large_speech_320_24k.ckpt
# Make the Python path include the local yarngpt directory
ENV PYTHONPATH="/app:${PYTHONPATH}"
# Start the application
CMD ["python", "app.py"]