Spaces:
Sleeping
Sleeping
File size: 869 Bytes
15b623a 571e007 60d41a0 571e007 60d41a0 15b623a 60d41a0 3f55302 15b623a |
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 |
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
# Install Poetry
RUN apt-get update && apt-get install -y git curl python3 python3-pip build-essential ffmpeg libsm6 libxext6
RUN curl -sSL https://install.python-poetry.org | python3 -
ENV PATH="/root/.local/bin:${PATH}"
RUN poetry config virtualenvs.create false
# Install dependencies
WORKDIR /root
RUN git clone https://github.com/fishaudio/fish-diffusion.git --depth 1
WORKDIR /root/fish-diffusion
RUN poetry install
COPY checkpoint.ckpt checkpoints/checkpoint.ckpt
COPY exp_hifisinger.py configs/exp_hifisinger.py
RUN chmod -R 777 /root/fish-diffusion
ENV GRADIO_SERVER_NAME=0.0.0.0
ENV GRADIO_SERVER_PORT=7860
CMD python3 tools/hifisinger/inference.py --config configs/exp_hifisinger.py --checkpoint checkpoints/checkpoint.ckpt --speaker opencpop --max_slice_duration 120 --min_silence_duration 2 --gradio
|