A hands-on walkthrough of three web apps built using OpenAI's Privacy Filter model (1.5B params, Apache 2.0) for PII detection and redaction. The apps cover document PII highlighting, image anonymization with canvas editing, and a redacting pastebin. All three are built on gradio.Server, which pairs custom HTML/JS frontends with Gradio's queuing, ZeroGPU allocation, and gradio_client SDK. The post explains the architecture pattern: model inference goes through @server.api queued endpoints, while static pages and cheap routes use plain FastAPI GET/POST handlers. Code snippets show how to wire up file uploads, OCR-based image redaction, and token-gated URL routing in roughly 200 lines of application code per app.
Table of contents
The model1. Document Privacy Explorer2. Image Anonymizer3. SmartRedact PasteWhat gradio.Server providesTry themRecommended readingSort: