snym04 commited on
Commit
8d21c66
·
verified ·
1 Parent(s): 74e7689

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +16 -12
requirements.txt CHANGED
@@ -1,15 +1,22 @@
1
- # --- 1. 核心 MinerU 体系 (根据报错修正版本) ---
2
  mineru==2.7.6
3
- # 满足 MinerU 对 BS4 的硬性要求
4
  beautifulsoup4==4.13.5
5
- # 之前版本过低,现在改为兼容版本
6
  magic-pdf>=1.0.0
7
  paddlepaddle==3.0.0b2
8
 
9
- # --- 2. 之前已理顺的基础工具 (继续保持) ---
 
 
 
 
 
 
 
10
  shellingham==1.5.4
11
  typer==0.12.5
12
  click==8.1.7
 
 
13
  mpmath==1.3.0
14
  sympy==1.13.3
15
  pyparsing==3.1.2
@@ -17,36 +24,33 @@ sse-starlette==2.1.3
17
  uvicorn>=0.14.0
18
  websockets>=10.4
19
 
20
- # --- 3. 网页与解析 (修正冲突) ---
21
  soupsieve==2.6
22
- # 注意:这里已更新为 4.13.5
23
 
24
- # --- 4. 之前封堵的黑洞 (防止回溯重现) ---
25
  flatbuffers==24.3.25
26
  authlib==1.3.2
27
  tifffile==2024.12.12
28
  scikit-image==0.25.0
29
 
30
- # --- 5. PyTorch 环境 (CPU 优先) ---
31
  --extra-index-url https://download.pytorch.org/whl/cpu
32
  torch
33
  torchvision
34
  av==12.3.0
35
 
36
- # --- 6. 其他功能依赖 ---
37
- # 让 opencv 自动选择最适合 HF 环境的 headless 版本
38
  opencv-python-headless
39
  onnxruntime>=1.18.0
40
  magika>=0.5.1
41
  pillow
42
  playwright
43
- openai
44
  google-generativeai
45
  colorlog>=6.9.0
46
  fast-langdetect>=0.2.3
47
  ffmpy>=0.5.0
48
 
49
- # --- 7. 谷歌相关 ---
50
  google-api-python-client==2.150.0
51
  google-auth-httplib2==0.2.0
52
  httplib2==0.22.0
 
1
+ # --- 1. 核心 MinerU 体系 ---
2
  mineru==2.7.6
 
3
  beautifulsoup4==4.13.5
 
4
  magic-pdf>=1.0.0
5
  paddlepaddle==3.0.0b2
6
 
7
+ # --- 2. 锁定 OpenAI 及其底层通讯库 (解决本次回溯) ---
8
+ openai==1.60.0
9
+ pydantic>=2.0
10
+ pydantic-core>=2.0
11
+ httpx>=0.27.0
12
+ httpcore>=1.0.0
13
+
14
+ # --- 3. 命令行与 CLI 基础库 ---
15
  shellingham==1.5.4
16
  typer==0.12.5
17
  click==8.1.7
18
+
19
+ # --- 4. 核心数学与基础工具 ---
20
  mpmath==1.3.0
21
  sympy==1.13.3
22
  pyparsing==3.1.2
 
24
  uvicorn>=0.14.0
25
  websockets>=10.4
26
 
27
+ # --- 5. 网页处理与解析 ---
28
  soupsieve==2.6
 
29
 
30
+ # --- 6. 之前封堵的黑洞 (防止回溯重现) ---
31
  flatbuffers==24.3.25
32
  authlib==1.3.2
33
  tifffile==2024.12.12
34
  scikit-image==0.25.0
35
 
36
+ # --- 7. PyTorch 环境 (CPU 优先) ---
37
  --extra-index-url https://download.pytorch.org/whl/cpu
38
  torch
39
  torchvision
40
  av==12.3.0
41
 
42
+ # --- 8. 其他功能依赖 ---
 
43
  opencv-python-headless
44
  onnxruntime>=1.18.0
45
  magika>=0.5.1
46
  pillow
47
  playwright
 
48
  google-generativeai
49
  colorlog>=6.9.0
50
  fast-langdetect>=0.2.3
51
  ffmpy>=0.5.0
52
 
53
+ # --- 9. 谷歌相关 ---
54
  google-api-python-client==2.150.0
55
  google-auth-httplib2==0.2.0
56
  httplib2==0.22.0