Spaces:
Running
Running
Upload Dockerfile
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -7,10 +7,14 @@ RUN apt-get update && apt-get install -y \
|
|
| 7 |
git ffmpeg build-essential cmake libmecab-dev mecab-ipadic-utf8 \
|
| 8 |
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
-
# 安装 genie_tts
|
| 11 |
RUN pip install --no-cache-dir \
|
| 12 |
onnx onnxruntime==1.22.1 tokenizers numpy soundfile soxr pyyaml \
|
| 13 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
# 复制所有文件(包括本地 genie_tts 源码)
|
| 16 |
COPY . /app
|
|
|
|
| 7 |
git ffmpeg build-essential cmake libmecab-dev mecab-ipadic-utf8 \
|
| 8 |
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
+
# 安装 genie_tts 的所有依赖(使用本地源码,不安装 genie_tts 包)
|
| 11 |
RUN pip install --no-cache-dir \
|
| 12 |
onnx onnxruntime==1.22.1 tokenizers numpy soundfile soxr pyyaml \
|
| 13 |
+
sounddevice pydantic "huggingface_hub[hf_xet]" \
|
| 14 |
+
fastapi "uvicorn[standard]" python-multipart \
|
| 15 |
+
pyopenjtalk-plus \
|
| 16 |
+
nltk \
|
| 17 |
+
pypinyin g2pM jieba_fast
|
| 18 |
|
| 19 |
# 复制所有文件(包括本地 genie_tts 源码)
|
| 20 |
COPY . /app
|