metadata
title: Privacy Sanitizer API
emoji: 🔒
colorFrom: purple
colorTo: blue
sdk: docker
app_port: 7860
pinned: false
private: true
Privacy Sanitizer — Backend API
FastAPI backend for the Privacy Text Sanitizer app.
NER-based PII detection using HuggingFace Transformers.
Endpoints
| Method | Path | Description |
|---|---|---|
GET |
/health |
Health check |
GET |
/api/models |
List available NER models |
POST |
/api/sanitize |
Sanitize text |
Environment variables (set in Space Secrets)
| Variable | Description |
|---|---|
FRONTEND_URL |
Vercel frontend URL for CORS (e.g. https://your-app.vercel.app) |
DEFAULT_MODEL_NAME |
Override default NER model |
Deploy
This Space is deployed from deploy/hf-space/ in the main repo.
Push only the backend app/ and requirements.txt alongside this Dockerfile.