How to build scalable web apps with OpenAI's Privacy Filter
AI-generated summary of reporting by Huggingface Blog. Read the original for the full story.
Why it matters
OpenAI's open-source PII detector can now be dropped into apps via Gradio, giving developers a free, permissively licensed tool for redacting documents, screenshots and pasted text.
OpenAI has released Privacy Filter, a free, open-source tool that automatically finds personal information, names, emails, phone numbers, account numbers and the like, in text. It reads up to 128,000 tokens in one pass, so long documents don't need to be chopped into pieces. The Hugging Face team built three example apps with it: a document viewer that highlights private details, an image tool that black-bars sensitive info in screenshots, and a pastebin that redacts text before sharing. Anyone handling contracts, resumes or logs could use it to reduce accidental exposure of private data.
OpenAI's Privacy Filter is an Apache 2.0-licensed PII detector teams can self-host for free, with three working demo apps showing document redaction, screenshot anonymization and shareable redacted pastes. State-of-the-art results on the PII-Masking-300k benchmark and an 8-category taxonomy make it a credible alternative to paid redaction services, though the demos note the model occasionally misses things and a commenter flags weak coverage for non-English clinical text. Compliance use in specialized domains remains unverified.
Privacy Filter is a 1.5B-parameter model with 50M active parameters, Apache 2.0 licensed, labeling eight PII categories (private_person, private_email, secret, etc.) in a single 128k-context forward pass with BIOES decoding; it claims state-of-the-art on PII-Masking-300k. The three Gradio apps combine Tesseract OCR for image redaction and FastAPI routes: @server.api handlers get Gradio queueing and ZeroGPU @spaces.GPU composition, while plain @server.get routes serve static pages. The paste app redacts via <CATEGORY> placeholders with token-gated reveal URLs; total service is ~200 lines.
Read the original
This summary exists to save you time, not to replace the source.
Key terms
Privacy Filter Gradio Tesseract ZeroGPU PII-Masking-300k FastAPI
Was this summary useful?
One click, anonymous. It tells us which summaries to re-run.
Related reading
Code-driven AI illustrations are more useful than images from dedicated image models
Code-driven AI illustrations let designers edit assets directly in code, saving time on iteration and ensuring consistency, which is a game-changer for teams that need rapid, reusable visual content.
datasette-charts 0.5a0
Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.
A hierarchical note-taking app for building large personal knowledge bases
Trilium lets users build and navigate massive personal knowledge bases without duplicating content, saving time on organization and retrieval.
Desktop apps in Go with native UI or web frontend
Go developers can now ship cross-platform desktop and mobile apps in a single small binary without cgo or heavy runtimes, cutting build complexity and deployment size.
OpenBitFun: an agent workspace with four harness modes and phone remote control
OpenBitFun lets agents run on any machine and be controlled from a phone, eliminating the need to choose between local power and remote access, saving developers time switching contexts.