Spaces:
Paused
Paused
Download Dockerfile from voidash/evals-sanotts: direct link, hf CLI and curl.
- Browser
- Download file 1.06 kB
-
https://huggingface.co/spaces/voidash/evals-sanotts/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/voidash/evals-sanotts/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/voidash/evals-sanotts/resolve/main/Dockerfile
1.06 kB
| FROM python:3.12.13-slim-bookworm | |
| RUN apt-get update && apt-get install -y --no-install-recommends git libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| RUN pip install --no-cache-dir \ | |
| 'sanotts @ git+https://github.com/Ampixa/sanoTTS@c1fc3589ecb9bce72e90648321e594747f997c87#subdirectory=pypkg' \ | |
| numpy==2.5.4 huggingface_hub==2.4.0 datasets==3.6.0 soundfile==0.14.0 tqdm==4.70.1 threadpoolctl==3.8.0 | |
| RUN python -c "from huggingface_hub import snapshot_download; from sanotts import Synthesizer; from pathlib import Path; root = Path(snapshot_download('ampixa/sanoTTS', revision='4a8194aa1dd958033ee449b3ad30c37e536b216e', allow_patterns=['amy-en-1p46m/*', 'heart/*', 'heartnano/*'])); [(lambda a: print(voice, a.audio.shape, a.sample_rate))(Synthesizer(voice=voice, voice_dir=root / directory).synthesize('Hello world. This is a test.')) for voice, directory in [('amy','amy-en-1p46m'),('heart','heart'),('heart-nano','heartnano')]]" | |
| COPY README.md /app/README.md | |
| ENTRYPOINT ["bash"] | |
| EXPOSE 7860 | |
| CMD ["-c", "python -m http.server 7860"] | |