hung-k-nguyen's picture
Urgency score example; score shows its most likely level
b7774c7 verified
|
Raw History Blame Contribute Delete
2.78 kB

A newer version of the Gradio SDK is available: 6.33.0

Upgrade
metadata
title: nutrient-document-decision-v2 demo
emoji: 🖼️
colorFrom: blue
colorTo: green
sdk: gradio
sdk_version: 6.20.0
app_file: app.py
license: other
short_description: Typed answers, boxes and spans from one read, calibrated

nutrient-document-decision-v2 demo

Ask a document typed questions (yes/no, pick-one, labelled boxes on the page, labelled spans in the text) and get every answer from one read, each with a calibrated confidence. Pick an example from document pages (invoice, tax form, layout, page-stream splitting, open-vocabulary classification), photos, text (PII, RAG answer check, RAG retrieval, support-email urgency) or agents (which actions a policy allows, routing a finished run, a browser agent's next step), or upload your own pages (images, or a PDF, which adds one page per sheet), and edit the request freely. A slider on the result chooses the confidence from which boxes and spans are shown.

Example pages are synthetic (fictional companies and people), except the IRS Form W-9 (a US government work, public domain) the breakfast-table photo (Wikimedia Commons, CC0) and the rainy-street photo (Flickr photo 1364551290 via the COCO dataset, CC BY 2.0). The agent and RAG retrieval examples are from the ood split of Open-Jev (CC0-1.0).

Secret required

This Space needs an HF_TOKEN secret (Settings → Variables and secrets) with read access to nutrientdocs/nutrient-document-decision-v2-private. The commercial model is loaded server-side at runtime with this token; it is never exposed or downloadable from the Space.

About the author

This project is maintained and funded by Nutrient - The deterministic document infrastructure enterprises run their highest-stakes workflows on: replayable output, clear exceptions, and full audit trails on the messy, regulated documents where AI alone breaks.