CoolFace
Apppublic

adelevett/docling_pp_layout_demo

sourceHugging Facemitupdated 7mo agoView on Hugging Face
0likes
App README

PDF Layout Detection with PP-DocLayoutV3

Upload any PDF and get a structured breakdown of every element on the page — titles, body text, tables, figures, formulas, headers, footers, footnotes, and more — powered by PaddlePaddle's PP-DocLayoutV3 model via the docling-pp-doc-layout plugin.

Results are displayed as interactive JSON in the browser and can be downloaded as a .json file with one click.

How to use

  1. 1.Click Source Document and upload a PDF.
  2. 2.Click Run Layout Detection.
  3. 3.Inspect the extracted elements in the JSON panel.
  4. 4.Click Download JSON to save the results.

Output format

Each detected region is returned as an object with two fields:

json
{
  "type": "SectionHeaderItem",
  "content": "Introduction"
}

type reflects the docling document-model class. The table below maps the model's raw labels to the types you will see:

Detected regionOutput type
doc_titleTitleItem
paragraph_titleSectionHeaderItem
text, content, abstract, aside_textTextItem
tableTableItem
image, chart, sealPictureItem
formulaTextItem (formula)
footnote, vision_footnoteTextItem (footnote)
headerTextItem (page header)
footerTextItem (page footer)
reference, reference_contentTextItem
algorithmTextItem (code)

Infrastructure

ComponentDetail
HardwareZeroGPU — NVIDIA H200 (70 GB VRAM, shared)
Layout model`PaddlePaddle/PP-DocLayoutV3_safetensors`
Pipelinedocling ≥ 2.73 + docling-pp-doc-layout
SDKGradio 6.9.0, Python 3.10