Spaces:
Runtime error
Runtime error
Update requirements.txt
Browse files- requirements.txt +3 -10
requirements.txt
CHANGED
|
@@ -1,28 +1,21 @@
|
|
| 1 |
pandas==1.5.3
|
| 2 |
numpy==1.26.4
|
| 3 |
|
| 4 |
-
# CPU 版 PyTorch,如需 GPU 请换相应 CUDA 版本
|
| 5 |
torch==2.0.1
|
| 6 |
|
| 7 |
-
# LangChain 与 Community 包需版本匹配
|
| 8 |
langchain==0.3.21
|
| 9 |
langchain-community==0.3.20
|
| 10 |
langchain-huggingface==0.1.2
|
| 11 |
|
| 12 |
-
|
| 13 |
-
# FAISS CPU 版(如需 GPU,可改 faiss-gpu==1.7.3)
|
| 14 |
faiss-cpu==1.7.3
|
| 15 |
|
| 16 |
-
#
|
| 17 |
-
transformers==4.
|
| 18 |
|
| 19 |
-
# Gradio 前端可视化
|
| 20 |
gradio==3.27.0
|
| 21 |
-
|
| 22 |
-
# OpenAI Python SDK
|
| 23 |
openai
|
| 24 |
|
| 25 |
-
#
|
| 26 |
pydantic==2.10.3
|
| 27 |
|
| 28 |
# text2vec 中文 Embeddings
|
|
|
|
| 1 |
pandas==1.5.3
|
| 2 |
numpy==1.26.4
|
| 3 |
|
|
|
|
| 4 |
torch==2.0.1
|
| 5 |
|
|
|
|
| 6 |
langchain==0.3.21
|
| 7 |
langchain-community==0.3.20
|
| 8 |
langchain-huggingface==0.1.2
|
| 9 |
|
|
|
|
|
|
|
| 10 |
faiss-cpu==1.7.3
|
| 11 |
|
| 12 |
+
# 为满足 langchain-huggingface==0.1.2,需要 Transformers >= 4.39.0
|
| 13 |
+
transformers==4.40.1
|
| 14 |
|
|
|
|
| 15 |
gradio==3.27.0
|
|
|
|
|
|
|
| 16 |
openai
|
| 17 |
|
| 18 |
+
# 新版 pydantic,适配 langchain 0.3.x
|
| 19 |
pydantic==2.10.3
|
| 20 |
|
| 21 |
# text2vec 中文 Embeddings
|