Spaces:
Sleeping
Sleeping
Update requirements.txt
Browse files- requirements.txt +34 -35
requirements.txt
CHANGED
|
@@ -1,61 +1,60 @@
|
|
| 1 |
-
# --- 1.
|
| 2 |
-
|
| 3 |
-
pydantic==2.10.0
|
| 4 |
pydantic-core==2.27.0
|
| 5 |
|
| 6 |
-
# --- 2. 核心 MinerU 体系 ---
|
| 7 |
mineru==2.6.8
|
| 8 |
magic-pdf==1.3.12
|
| 9 |
-
pdfminer.six==
|
| 10 |
-
beautifulsoup4=
|
| 11 |
-
openai=
|
| 12 |
|
| 13 |
-
# --- 3. Gradio
|
| 14 |
-
#
|
| 15 |
-
gradio
|
| 16 |
gradio[oauth]
|
| 17 |
|
| 18 |
-
# --- 4.
|
| 19 |
httpx>=0.27.0
|
| 20 |
httpcore>=1.0.0
|
| 21 |
-
shellingham=
|
| 22 |
-
typer=
|
| 23 |
-
click=
|
| 24 |
-
|
| 25 |
-
# --- 5.
|
| 26 |
-
mpmath=
|
| 27 |
-
sympy=
|
| 28 |
-
pyparsing=
|
| 29 |
-
sse-starlette=
|
| 30 |
uvicorn>=0.14.0
|
| 31 |
websockets>=10.4
|
| 32 |
-
soupsieve=
|
| 33 |
|
| 34 |
-
# --- 6. 图像
|
| 35 |
-
flatbuffers=
|
| 36 |
-
authlib=
|
| 37 |
-
tifffile=
|
| 38 |
-
scikit-image=
|
| 39 |
opencv-python-headless
|
| 40 |
pillow
|
| 41 |
-
av=
|
| 42 |
|
| 43 |
-
# --- 7. PyTorch (CPU 优
|
| 44 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 45 |
torch
|
| 46 |
torchvision
|
| 47 |
|
| 48 |
-
# --- 8.
|
| 49 |
paddlepaddle==3.0.0b2
|
| 50 |
onnxruntime>=1.18.0
|
| 51 |
magika>=0.5.1
|
| 52 |
playwright
|
| 53 |
google-generativeai
|
| 54 |
-
colorlog>=6.
|
| 55 |
-
fast-langdetect>=0.2.
|
| 56 |
ffmpy>=0.5.0
|
| 57 |
|
| 58 |
-
# --- 9. 谷歌
|
| 59 |
-
google-api-python-client=
|
| 60 |
-
google-auth-httplib2=
|
| 61 |
-
httplib2=
|
|
|
|
| 1 |
+
# --- 1. 绝对核心约束 (必须置顶以对抗 HF 的自动安装) ---
|
| 2 |
+
pydantic>=2.7.2,<2.11
|
|
|
|
| 3 |
pydantic-core==2.27.0
|
| 4 |
|
| 5 |
+
# --- 2. 核心 MinerU 体系 (回归 MinerU 要求的版本) ---
|
| 6 |
mineru==2.6.8
|
| 7 |
magic-pdf==1.3.12
|
| 8 |
+
pdfminer.six==20250506
|
| 9 |
+
beautifulsoup4>=4.12.0
|
| 10 |
+
openai>=1.0.0
|
| 11 |
|
| 12 |
+
# --- 3. Gradio 相关 ---
|
| 13 |
+
# 仅列出基础包,不写版本号或只写大版本,让 HF 自动适配
|
| 14 |
+
gradio
|
| 15 |
gradio[oauth]
|
| 16 |
|
| 17 |
+
# --- 4. 关键依赖 (放宽版本号,减少冲突概率) ---
|
| 18 |
httpx>=0.27.0
|
| 19 |
httpcore>=1.0.0
|
| 20 |
+
shellingham>=1.5.0
|
| 21 |
+
typer>=0.12.0
|
| 22 |
+
click>=8.0.0
|
| 23 |
+
|
| 24 |
+
# --- 5. 基础环境 ---
|
| 25 |
+
mpmath>=1.3.0
|
| 26 |
+
sympy>=1.13.0
|
| 27 |
+
pyparsing>=3.0.0
|
| 28 |
+
sse-starlette>=2.0.0
|
| 29 |
uvicorn>=0.14.0
|
| 30 |
websockets>=10.4
|
| 31 |
+
soupsieve>=2.0
|
| 32 |
|
| 33 |
+
# --- 6. 图像与多媒体 ---
|
| 34 |
+
flatbuffers>=24.0.0
|
| 35 |
+
authlib>=1.3.0
|
| 36 |
+
tifffile>=2024.0.0
|
| 37 |
+
scikit-image>=0.20.0
|
| 38 |
opencv-python-headless
|
| 39 |
pillow
|
| 40 |
+
av>=12.0.0
|
| 41 |
|
| 42 |
+
# --- 7. PyTorch (CPU 优先) ---
|
| 43 |
--extra-index-url https://download.pytorch.org/whl/cpu
|
| 44 |
torch
|
| 45 |
torchvision
|
| 46 |
|
| 47 |
+
# --- 8. 其他关键组件 ---
|
| 48 |
paddlepaddle==3.0.0b2
|
| 49 |
onnxruntime>=1.18.0
|
| 50 |
magika>=0.5.1
|
| 51 |
playwright
|
| 52 |
google-generativeai
|
| 53 |
+
colorlog>=6.0.0
|
| 54 |
+
fast-langdetect>=0.2.0
|
| 55 |
ffmpy>=0.5.0
|
| 56 |
|
| 57 |
+
# --- 9. 谷歌 API 体系 ---
|
| 58 |
+
google-api-python-client>=2.0.0
|
| 59 |
+
google-auth-httplib2>=0.2.0
|
| 60 |
+
httplib2>=0.20.0
|