How to build scalable web apps with OpenAI's Privacy Filter
Hugging Face
OpenAI dropped an open-source PII detector on Hugging Face, and someone already built three apps with it. Free text redaction that scans 128k tokens in one pass, no chunking hacks needed.
Based on reporting by Hugging Face — read the original for the full story.
Summary, retelling and take written by AI under human oversight; images are AI-generated illustrations. How we work · Report an error
Hugging Face's team spent an afternoon poking at OpenAI's newly released Privacy Filter model and came away with three working demos, which tells you something about how quickly this kind of tool can go from research artifact to actual product. Privacy Filter is small by today's standards, 1.5 billion parameters with only 50 million active, Apache 2.0 licensed, and it flags eight categories of personal data: names, addresses, emails, phone numbers, URLs, dates, account numbers, and generic secrets. It reads up to 128,000 tokens in a single forward pass, which matters more than it sounds like it should. No chunking a document into pieces and stitching results back together, no drift between segments, just clean span offsets that line up with the original text.
The three demos each stress a different part of that capability. Document Privacy Explorer takes a PDF or Word file and renders it back as readable prose with every detected span highlighted, filterable by category, backed by a dashboard summarizing what was found. Image Anonymizer runs OCR over screenshots, maps detected text spans back to pixel coordinates, and drops black bars over names and account numbers, all editable on a canvas so you can nudge, delete, or draw your own boxes before exporting. SmartRedact Paste is the cleverest of the trio: paste sensitive text, get a public link that shows the redacted version with placeholders like <PRIVATE_EMAIL>, and a separate token-gated private link that reveals the original.
What ties the three together isn't the model so much as the plumbing. All three run on gradio.Server, a framework that lets a team mix custom HTML and JavaScript frontends with Gradio's queuing system and its ZeroGPU allocator. The pattern is consistent everywhere: anything that touches the model runs through a decorated @server.api endpoint, which gets you request queuing and correct GPU scheduling, while anything that's just serving a static page or a dict lookup goes through a plain FastAPI route. That split let the team build SmartRedact Paste's entire backend, storage included, in around 200 lines, because everything lives in one process instead of being spread across separate services.
There's a practical honesty to how this is presented too. The write-up doesn't pretend the model is flawless — it explicitly invites people to paste in log lines with tokens in them or screenshots of Slack threads specifically to see what gets caught and what slips through. Multilingual text apparently routes through the same single call with no extra handling, which is a nice touch if true across the board, though the real test is always messier real-world data rather than benchmark numbers like the reported state-of-the-art result on PII-Masking-300k.
My take — AI-written commentary, not fact-checked reporting
This is a good example of open weights actually being useful within hours of release, not just useful in theory — a 1.5B model doing PII detection at 128k context on Apache 2.0 terms is the kind of thing a small team can build a real product around by lunchtime. I'd rather see ten scrappy tools like this than one more giant closed model announcement, and it's a decent reminder that infrastructure glue like gradio.Server matters just as much as the underlying model.
Read more about this at: Hugging Face