Spaces:
Sleeping
Sleeping
Update requirements.txt
Browse files- requirements.txt +7 -1
requirements.txt
CHANGED
|
@@ -1,5 +1,11 @@
|
|
| 1 |
-
|
|
|
|
|
|
|
| 2 |
uvicorn>=0.23.2,<0.25.0
|
|
|
|
| 3 |
transformers>=4.35.2,<4.40.0
|
| 4 |
torch>=2.0.0,<2.2.0+cpu; sys_platform == 'linux'
|
|
|
|
|
|
|
|
|
|
| 5 |
pydantic>=2.0.0,<2.5.0
|
|
|
|
| 1 |
+
# 解决 MarkdownResponse 导入问题
|
| 2 |
+
fastapi>=0.100.0
|
| 3 |
+
# 基础服务依赖
|
| 4 |
uvicorn>=0.23.2,<0.25.0
|
| 5 |
+
# 模型依赖(指定兼容版本)
|
| 6 |
transformers>=4.35.2,<4.40.0
|
| 7 |
torch>=2.0.0,<2.2.0+cpu; sys_platform == 'linux'
|
| 8 |
+
# 解决 NumPy 兼容性问题
|
| 9 |
+
numpy<2.0.0
|
| 10 |
+
# 数据模型验证
|
| 11 |
pydantic>=2.0.0,<2.5.0
|