fdbw commited on
Commit
0601736
·
verified ·
1 Parent(s): ee9cf17

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +11 -12
requirements.txt CHANGED
@@ -1,14 +1,13 @@
1
- # 基础框架(降低gradio版本,提升兼容性)
2
- gradio==4.19.1
3
- # RAG核心(修复langchain版本冲突)
4
  langchain==0.1.10
5
- langchain-community==0.0.25 # 匹配langchain 0.1.10的最低要求
6
- faiss-cpu==1.7.4.post2 # 修复1.7.4的兼容性问题
7
- sentence-transformers==2.2.2
8
  # 大语言模型
9
- openai==1.14.0
10
- # 工具类
11
- python-dotenv==1.0.1
12
- pandas==2.2.1
13
- # 补充依赖(解决隐性依赖缺失)
14
- numpy==1.26.4
 
1
+ # 基础框架:放宽版本约束,避免与HF Spaces自动安装的gradio冲突
2
+ gradio>=4.0.0,<5.0.0
3
+ # RAG核心:修复langchain版本冲突,使用PyPI存在的faiss-cpu版本
4
  langchain==0.1.10
5
+ langchain-community==0.0.25 # 严格匹配langchain 0.1.10的依赖要求
6
+ faiss-cpu==1.7.4 # 改用PyPI存在的稳定版本
7
+ sentence-transformers>=2.2.0
8
  # 大语言模型
9
+ openai>=1.0.0
10
+ # 工具类:放宽版本约束,提升兼容性
11
+ python-dotenv>=1.0.0
12
+ pandas>=2.0.0
13
+ numpy>=1.26.0