Spaces:
Sleeping
Sleeping
Update requirements.txt
Browse files- requirements.txt +16 -13
requirements.txt
CHANGED
|
@@ -1,24 +1,27 @@
|
|
| 1 |
-
# --- 1. 核心 MinerU 体系 (
|
| 2 |
-
# 锁定 2.6.8 是因为其依赖链已经完全成熟且闭环
|
| 3 |
mineru==2.6.8
|
| 4 |
magic-pdf==1.3.12
|
|
|
|
| 5 |
beautifulsoup4==4.13.5
|
| 6 |
openai==1.70.0
|
| 7 |
-
# 明确锁定 pdfminer.six 以辅助 Pip 决策
|
| 8 |
-
pdfminer.six==20250506
|
| 9 |
|
| 10 |
-
# --- 2. Pydantic 兼容
|
| 11 |
-
pydantic
|
| 12 |
-
pydantic-core
|
| 13 |
httpx>=0.27.0
|
| 14 |
httpcore>=1.0.0
|
| 15 |
|
| 16 |
-
# --- 3.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
shellingham==1.5.4
|
| 18 |
typer==0.12.5
|
| 19 |
click==8.1.7
|
| 20 |
|
| 21 |
-
# ---
|
| 22 |
mpmath==1.3.0
|
| 23 |
sympy==1.13.3
|
| 24 |
pyparsing==3.1.2
|
|
@@ -27,19 +30,19 @@ uvicorn>=0.14.0
|
|
| 27 |
websockets>=10.4
|
| 28 |
soupsieve==2.6
|
| 29 |
|
| 30 |
-
# ---
|
| 31 |
flatbuffers==24.3.25
|
| 32 |
authlib==1.3.2
|
| 33 |
tifffile==2024.12.12
|
| 34 |
scikit-image==0.25.0
|
| 35 |
|
| 36 |
-
# ---
|
| 37 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 38 |
torch
|
| 39 |
torchvision
|
| 40 |
av==12.3.0
|
| 41 |
|
| 42 |
-
# ---
|
| 43 |
opencv-python-headless
|
| 44 |
paddlepaddle==3.0.0b2
|
| 45 |
onnxruntime>=1.18.0
|
|
@@ -51,7 +54,7 @@ colorlog>=6.9.0
|
|
| 51 |
fast-langdetect>=0.2.3
|
| 52 |
ffmpy>=0.5.0
|
| 53 |
|
| 54 |
-
# ---
|
| 55 |
google-api-python-client==2.150.0
|
| 56 |
google-auth-httplib2==0.2.0
|
| 57 |
httplib2==0.22.0
|
|
|
|
| 1 |
+
# --- 1. 核心 MinerU 体系 (回归 2.6.x 稳定版) ---
|
|
|
|
| 2 |
mineru==2.6.8
|
| 3 |
magic-pdf==1.3.12
|
| 4 |
+
pdfminer.six==20250506
|
| 5 |
beautifulsoup4==4.13.5
|
| 6 |
openai==1.70.0
|
|
|
|
|
|
|
| 7 |
|
| 8 |
+
# --- 2. Pydantic 兼容点 (关键:降到 2.11 以下以满足 Magic-PDF) ---
|
| 9 |
+
pydantic==2.10.0
|
| 10 |
+
pydantic-core==2.27.0
|
| 11 |
httpx>=0.27.0
|
| 12 |
httpcore>=1.0.0
|
| 13 |
|
| 14 |
+
# --- 3. Gradio 兼容性调整 ---
|
| 15 |
+
# 显式写在 requirements 里,不带 [mcp] 以放宽 Pydantic 限制
|
| 16 |
+
gradio==6.6.0
|
| 17 |
+
gradio[oauth]
|
| 18 |
+
|
| 19 |
+
# --- 4. 命令行与工具类 ---
|
| 20 |
shellingham==1.5.4
|
| 21 |
typer==0.12.5
|
| 22 |
click==8.1.7
|
| 23 |
|
| 24 |
+
# --- 5. 基础环境与回溯封堵 ---
|
| 25 |
mpmath==1.3.0
|
| 26 |
sympy==1.13.3
|
| 27 |
pyparsing==3.1.2
|
|
|
|
| 30 |
websockets>=10.4
|
| 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 |
paddlepaddle==3.0.0b2
|
| 48 |
onnxruntime>=1.18.0
|
|
|
|
| 54 |
fast-langdetect>=0.2.3
|
| 55 |
ffmpy>=0.5.0
|
| 56 |
|
| 57 |
+
# --- 9. 谷歌全家桶 ---
|
| 58 |
google-api-python-client==2.150.0
|
| 59 |
google-auth-httplib2==0.2.0
|
| 60 |
httplib2==0.22.0
|