Skip to content
r.

MinerU Document Extraction Tools

hf:opendatalab/MinerU · Hugging Face Space

Embedded MinerU document extraction demo

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

MinerU Document Extraction Tools live demo screenshot
Captured from the live demo · 2026-11-02

About this project

Author-written excerpt from the project README.

app.py launches the code in mineruspace/. Flash TXT and native Office/HTML/OFD inputs run in a CPU/PDFium sidecar; Flash OCR and all Basic PDF requests use ZeroGPU. The maximum is Basic, with 20 pages and a 60-second GPU parse watchdog. Cancellation waits for native work to finish before releasing the request slot.

The Space image supplies Python 3.12. The launcher reuses that interpreter to create an isolated environment, installs MinerU's exact dev HEAD, verifies it, and activates it only after success. Failed updates keep an existing compatible runtime; no usable runtime means startup fails clearly. The cache defaults to /.cache/mineru-space-runtime (MINERURUNTIMECACHE overrides it), outside the checkout, and follows the Space's storage lifetime. Current and previous runtime manifests are retained for rollback.

The root requirements.txt installs launcher dependencies. The Space-specific pins for spaces, gradio, and torch are in mineruspace/runtime-requirements.txt. Other dependencies, including CPU onnxruntime, are resolved from MinerU's package metadata. Table inference is fixed to CPU and inherits MinerU's default 4/1 intra/inter-op threads. The Space does not set MINERUINTRAOPNUMTHREADS or MINERUINTEROPNUMTHREADS; explicit deployment overrides still work. Torch models still use CUDA and preload through ZeroGPU's emulation at startup. PDFium and ONNX sessions are not initialized in that parent…

Requirements and intended audience

app.py launches the code in mineruspace/. Flash TXT and native Office/HTML/OFD inputs run in a CPU/PDFium sidecar; Flash OCR and all Basic PDF requests use ZeroGPU. The maximum is Basic, with 20 pages and a 60-second GPU parse watchdog. Cancellation waits for native work to finish before releasing the request slot.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-11-02. Source: https://huggingface.co/spaces/opendatalab/MinerU/blob/main/README.md

Recorded maintenance information

Last recorded source update: 2026-10-25. A published release has not been recorded. These dates do not guarantee ongoing maintenance.

Technologies
Python
Licence
Apache-2.0. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-16. This does not test every feature.

Browse related categories