Spaces:
Running on Zero

vivekreddyr's picture
Add 'Editable form (fillable fields)' PDF export as default; edit fields in any PDF viewer
814f113 verified
|
Raw History Blame Contribute Delete
1.53 kB

A newer version of the Gradio SDK is available: 6.33.0

Upgrade
metadata
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.

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.