--- title: PaddleOCR-VL Doc Editor emoji: 📝 colorFrom: blue colorTo: indigo sdk: gradio sdk_version: 5.50.0 app_file: app.py python_version: "3.12" short_description: OCR a PDF, edit detected zones, export a corrected PDF startup_duration_timeout: 1h pinned: false license: apache-2.0 --- # PaddleOCR-VL Doc Editor An interactive document-parsing workbench built on [**PaddlePaddle/PaddleOCR-VL**](https://huggingface.co/PaddlePaddle/PaddleOCR-VL). Upload a **PDF or image**, and the app: 1. **Detects layout zones** (text, titles, tables, formulas, charts, figures) with PaddleOCR's `PP-DocLayout` model — running on CPU. 2. **Recognizes the content of every zone** with the compact 0.9B PaddleOCR-VL vision-language model — running on ZeroGPU, using the right prompt per zone type (OCR text, table → HTML, formula → LaTeX, chart). 3. Lets you **click any detected box and edit** its recognized content. 4. **Exports a PDF** — an *editable-form* PDF (a fillable field at each zone you edit directly in any PDF viewer), a *searchable* PDF (original pages with a selectable, corrected text layer), or a *text-only* PDF. This mirrors PaddleOCR-VL's real two-stage architecture: a lightweight layout stage followed by VLM element recognition. ### Notes - The heavy VLM step runs on ZeroGPU (allocated per request). The layout stage runs on CPU so the two dependency stacks (PaddlePaddle + PyTorch) stay isolated. - First launch downloads the models, so the initial boot takes a few minutes.