Glitche commited on
Update Dockerfile
Browse files- Dockerfile +22 -0
Dockerfile
CHANGED
|
@@ -8,6 +8,28 @@
|
|
| 8 |
|
| 9 |
FROM python:3.11-slim
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
# Whisper needs ffmpeg to read audio files, this installs it at the
|
| 12 |
# system level since it can't come from pip.
|
| 13 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
| 8 |
|
| 9 |
FROM python:3.11-slim
|
| 10 |
|
| 11 |
+
RUN python - <<'PY'
|
| 12 |
+
from huggingface_hub import hf_hub_download
|
| 13 |
+
import os
|
| 14 |
+
|
| 15 |
+
target = "/home/user/.yarngpt/models"
|
| 16 |
+
os.makedirs(target, exist_ok=True)
|
| 17 |
+
|
| 18 |
+
hf_hub_download(
|
| 19 |
+
repo_id="novateur/WavTokenizer-large-speech-75token",
|
| 20 |
+
filename="wavtokenizer_large_speech_320_24k.ckpt",
|
| 21 |
+
local_dir=target,
|
| 22 |
+
)
|
| 23 |
+
|
| 24 |
+
hf_hub_download(
|
| 25 |
+
repo_id="novateur/WavTokenizer-medium-speech-75token",
|
| 26 |
+
filename="wavtokenizer_mediumdata_frame75_3s_nq1_code4096_dim512_kmeans200_attn.yaml",
|
| 27 |
+
local_dir=target,
|
| 28 |
+
)
|
| 29 |
+
|
| 30 |
+
print("WavTokenizer files downloaded.")
|
| 31 |
+
PY
|
| 32 |
+
|
| 33 |
# Whisper needs ffmpeg to read audio files, this installs it at the
|
| 34 |
# system level since it can't come from pip.
|
| 35 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|