Spaces:
Running
Running
Update requirements.txt
Browse files- requirements.txt +11 -11
requirements.txt
CHANGED
|
@@ -1,26 +1,26 @@
|
|
| 1 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 3 |
torch
|
| 4 |
torchvision
|
| 5 |
|
| 6 |
-
#
|
| 7 |
colorlog>=6.9.0
|
| 8 |
fast-langdetect>=0.2.3
|
| 9 |
ffmpy>=0.5.0
|
| 10 |
beautifulsoup4
|
| 11 |
pillow
|
| 12 |
playwright
|
| 13 |
-
|
| 14 |
-
# --- 3. 大模型 SDK ---
|
| 15 |
openai
|
| 16 |
google-generativeai
|
| 17 |
|
| 18 |
-
#
|
| 19 |
-
#
|
| 20 |
-
# 强制锁定 av 版本避坑
|
| 21 |
av==12.3.0
|
| 22 |
magic-pdf[full]
|
| 23 |
-
mineru[all]
|
| 24 |
-
|
| 25 |
-
# --- 5. 解决 pyparsing 导致的递归太深问题 ---
|
| 26 |
-
pyparsing>=3.0.9
|
|
|
|
| 1 |
+
# 1. 强制最优先锁定关键底层库,防止回溯
|
| 2 |
+
httplib2==0.22.0
|
| 3 |
+
google-api-python-client==2.150.0
|
| 4 |
+
google-auth-httplib2==0.2.0
|
| 5 |
+
pyparsing>=3.0.9
|
| 6 |
+
|
| 7 |
+
# 2. 指定 CPU 版本的 PyTorch 索引
|
| 8 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 9 |
torch
|
| 10 |
torchvision
|
| 11 |
|
| 12 |
+
# 3. 功能依赖 (移除不必要的固定,让其自动适配)
|
| 13 |
colorlog>=6.9.0
|
| 14 |
fast-langdetect>=0.2.3
|
| 15 |
ffmpy>=0.5.0
|
| 16 |
beautifulsoup4
|
| 17 |
pillow
|
| 18 |
playwright
|
|
|
|
|
|
|
| 19 |
openai
|
| 20 |
google-generativeai
|
| 21 |
|
| 22 |
+
# 4. MinerU 核心
|
| 23 |
+
# 显式锁定 av,它是构建失败的高发区
|
|
|
|
| 24 |
av==12.3.0
|
| 25 |
magic-pdf[full]
|
| 26 |
+
mineru[all]
|
|
|
|
|
|
|
|
|