Spaces:
Sleeping
Sleeping
yanyoyo
commited on
Commit
·
498437d
1
Parent(s):
8ac0155
Fix pydantic version compatibility issues
Browse files- requirements.txt +7 -5
requirements.txt
CHANGED
@@ -1,15 +1,16 @@
|
|
1 |
# 核心依赖
|
2 |
streamlit==1.36.0
|
3 |
-
pydantic
|
4 |
-
langchain
|
5 |
-
llama-index==0.8.
|
|
|
6 |
openai==1.58.1
|
7 |
python-dotenv
|
8 |
|
9 |
# Hugging Face 相关
|
10 |
-
transformers
|
|
|
11 |
huggingface-hub
|
12 |
-
sentence-transformers
|
13 |
|
14 |
# PyTorch 相关
|
15 |
torch==2.0.1
|
@@ -22,6 +23,7 @@ pandas==1.5.3
|
|
22 |
nltk>=3.8.1
|
23 |
|
24 |
# 其他工具
|
|
|
25 |
httpx==0.28.1
|
26 |
requests
|
27 |
pydantic<3.0.0
|
|
|
1 |
# 核心依赖
|
2 |
streamlit==1.36.0
|
3 |
+
pydantic==1.10.13 # 固定到 1.10.x 版本
|
4 |
+
langchain==0.0.350 # 使用较旧的稳定版本
|
5 |
+
llama-index==0.8.54 # 使用较旧的稳定版本
|
6 |
+
llama-index-core==0.8.54
|
7 |
openai==1.58.1
|
8 |
python-dotenv
|
9 |
|
10 |
# Hugging Face 相关
|
11 |
+
transformers==4.30.2
|
12 |
+
sentence-transformers==2.2.2
|
13 |
huggingface-hub
|
|
|
14 |
|
15 |
# PyTorch 相关
|
16 |
torch==2.0.1
|
|
|
23 |
nltk>=3.8.1
|
24 |
|
25 |
# 其他工具
|
26 |
+
python-dotenv==1.0.0
|
27 |
httpx==0.28.1
|
28 |
requests
|
29 |
pydantic<3.0.0
|