snym04 commited on
Commit
9c38d72
·
verified ·
1 Parent(s): e2625b0

Update requirements.txt

Browse files
Files changed (1) hide show
  1. requirements.txt +14 -16
requirements.txt CHANGED
@@ -1,48 +1,46 @@
1
- # --- 1. 核心 MinerU 体系 (微调版本以绕过 pdfminer 死锁) ---
2
- # 稍微降级 mineru兼容现有的 magic-pdf 版本要求
3
- mineru==2.7.2
4
- # 使用当前最高版本
5
  magic-pdf==1.3.12
6
  beautifulsoup4==4.13.5
7
  openai==1.70.0
8
- paddlepaddle==3.0.0b2
 
9
 
10
- # --- 2. 关键:Pydantic 兼容区间 ---
11
- # 这是一个折中版本,尝试同时满足 Gradio Magic-PDF
12
- pydantic>=2.11.0,<2.12.0
13
  pydantic-core>=2.27.0
14
  httpx>=0.27.0
15
  httpcore>=1.0.0
16
 
17
- # --- 3. 命令行与 CLI 基础库 ---
18
  shellingham==1.5.4
19
  typer==0.12.5
20
  click==8.1.7
21
 
22
- # --- 4. 核心数学与基础工具 ---
23
  mpmath==1.3.0
24
  sympy==1.13.3
25
  pyparsing==3.1.2
26
  sse-starlette==2.1.3
27
  uvicorn>=0.14.0
28
  websockets>=10.4
29
-
30
- # --- 5. 网页处理与解析 ---
31
  soupsieve==2.6
32
 
33
- # --- 6. 之前封堵的黑洞 (继续保持) ---
34
  flatbuffers==24.3.25
35
  authlib==1.3.2
36
  tifffile==2024.12.12
37
  scikit-image==0.25.0
38
 
39
- # --- 7. PyTorch 环境 (CPU 优先) ---
40
  --extra-index-url https://download.pytorch.org/whl/cpu
41
  torch
42
  torchvision
43
  av==12.3.0
44
 
45
- # --- 8. 其他功能依赖 ---
46
  opencv-python-headless
47
  onnxruntime>=1.18.0
48
  magika>=0.5.1
@@ -53,7 +51,7 @@ colorlog>=6.9.0
53
  fast-langdetect>=0.2.3
54
  ffmpy>=0.5.0
55
 
56
- # --- 9. 谷歌相关 ---
57
  google-api-python-client==2.150.0
58
  google-auth-httplib2==0.2.0
59
  httplib2==0.22.0
 
1
+ # --- 1. 核心 MinerU 体系 (寻找兼容平衡点) ---
2
+ # 锁定 2.7.1解决 pdfminer.six 版本死锁
3
+ mineru==2.7.1
 
4
  magic-pdf==1.3.12
5
  beautifulsoup4==4.13.5
6
  openai==1.70.0
7
+ # 移除具体的 paddle 版本,让 mineru 自己选最合适的
8
+ paddlepaddle
9
 
10
+ # --- 2. Pydantic 通讯层 (满足 Gradio 6.6.0 的严苛要求) ---
11
+ # Gradio 6.6.0 的 mcp 插件对这个区间非常敏感
12
+ pydantic>=2.11.10,<2.13.0
13
  pydantic-core>=2.27.0
14
  httpx>=0.27.0
15
  httpcore>=1.0.0
16
 
17
+ # --- 3. 命令行与工具类 ---
18
  shellingham==1.5.4
19
  typer==0.12.5
20
  click==8.1.7
21
 
22
+ # --- 4. 基础环境与回溯封堵 ---
23
  mpmath==1.3.0
24
  sympy==1.13.3
25
  pyparsing==3.1.2
26
  sse-starlette==2.1.3
27
  uvicorn>=0.14.0
28
  websockets>=10.4
 
 
29
  soupsieve==2.6
30
 
31
+ # --- 5. 图像与多媒体黑洞 (防止回溯重现) ---
32
  flatbuffers==24.3.25
33
  authlib==1.3.2
34
  tifffile==2024.12.12
35
  scikit-image==0.25.0
36
 
37
+ # --- 6. PyTorch (CPU 优先) ---
38
  --extra-index-url https://download.pytorch.org/whl/cpu
39
  torch
40
  torchvision
41
  av==12.3.0
42
 
43
+ # --- 7. 其他关键依赖 ---
44
  opencv-python-headless
45
  onnxruntime>=1.18.0
46
  magika>=0.5.1
 
51
  fast-langdetect>=0.2.3
52
  ffmpy>=0.5.0
53
 
54
+ # --- 8. 谷歌全家桶 ---
55
  google-api-python-client==2.150.0
56
  google-auth-httplib2==0.2.0
57
  httplib2==0.22.0