Spaces:
Runtime error
Runtime error
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +23 -0
Dockerfile
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM pytorch/pytorch:2.6.0-cuda12.6-cudnn9-devel
|
| 2 |
+
|
| 3 |
+
WORKDIR /app
|
| 4 |
+
|
| 5 |
+
RUN apt-get update && apt-get install -y git ffmpeg libsndfile1 build-essential && rm -rf /var/lib/apt/lists/*
|
| 6 |
+
|
| 7 |
+
RUN pip install --no-cache-dir \
|
| 8 |
+
transformers einops loguru ormsgpack hydra-core omegaconf safetensors \
|
| 9 |
+
soundfile datasets huggingface_hub tiktoken loralib pyrootutils natsort \
|
| 10 |
+
librosa rich resampy pydub cachetools silero-vad descript-audio-codec \
|
| 11 |
+
lightning zstandard opencc-python-reimplemented einx torchaudio
|
| 12 |
+
|
| 13 |
+
RUN git clone --depth 1 https://github.com/fishaudio/fish-speech.git /app/fish-speech && \
|
| 14 |
+
cd /app/fish-speech && pip install --no-deps -e .
|
| 15 |
+
|
| 16 |
+
COPY gen_samples.py /app/gen_samples.py
|
| 17 |
+
COPY reference/ /app/reference/
|
| 18 |
+
|
| 19 |
+
ENV PYTHONPATH=/app/fish-speech:$PYTHONPATH
|
| 20 |
+
ENV TOKENIZERS_PARALLELISM=false
|
| 21 |
+
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 22 |
+
|
| 23 |
+
CMD ["python", "/app/gen_samples.py"]
|