Spaces:
Runtime error
Runtime error
Update requirements.txt
Browse files- requirements.txt +15 -15
requirements.txt
CHANGED
@@ -1,16 +1,16 @@
|
|
1 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
2 |
-
numpy>=1.24.3
|
3 |
-
scikit-learn==1.2.2
|
4 |
-
setuptools>=65.5.0
|
5 |
-
wheel>=0.41.0
|
6 |
-
torch
|
7 |
-
torchaudio
|
8 |
-
coqui-tts
|
9 |
-
hangul-romanize
|
10 |
-
coqui-tts[ja]
|
11 |
-
coqui-tts[zh]
|
12 |
-
uvicorn
|
13 |
-
fastapi
|
14 |
-
python-multipart
|
15 |
-
python-dotenv
|
16 |
-
pydub
|
|
|
1 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
2 |
+
numpy>=1.24.3,<2.0.0 # 保证与 coqui-tts 兼容,同时避开潜在的 numpy 2.0 变化
|
3 |
+
scikit-learn==1.2.2 # 固定版本,确保与 numpy 兼容
|
4 |
+
setuptools>=65.5.0,<68.0.0 # 版本过高可能导致不兼容,维持在稳定范围内
|
5 |
+
wheel>=0.41.0,<0.45.0 # 确保最新的 wheel 特性并避免潜在不兼容
|
6 |
+
torch>=2.0.0,<2.1.0 # 依赖于 pytorch.org/cpu 的最新稳定版本
|
7 |
+
torchaudio>=2.0.0,<2.1.0 # 与 torch 版本匹配
|
8 |
+
coqui-tts>=0.24.1,<0.25.0 # 最新稳定版,支持日语、中文和其他 TTS 模型
|
9 |
+
hangul-romanize>=0.2.5,<0.3.0 # 最新版汉字转拼音库
|
10 |
+
coqui-tts[ja]>=0.24.1,<0.25.0 # 日语支持,和主版本匹配
|
11 |
+
coqui-tts[zh]>=0.24.1,<0.25.0 # 中文支持,和主版本匹配
|
12 |
+
uvicorn>=0.22.0,<0.23.0 # 保持兼容的服务器版本
|
13 |
+
fastapi>=0.103.1,<0.105.0 # 最新稳定版
|
14 |
+
python-multipart>=0.0.6,<0.1.0 # 文件上传模块
|
15 |
+
python-dotenv>=1.0.0,<2.0.0 # 环境变量管理
|
16 |
+
pydub>=0.25.1,<0.26.0 # 音频处理库
|