privbert-proxy / README.md
shikhasConsent
Add PrivBERT proxy
be6176b
|
Raw
History Blame Contribute Delete
569 Bytes
metadata
title: PrivBERT Proxy
emoji: 🔒
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false

PrivBERT Proxy

REST API proxy for the PrivacyWhisper PrivBERT model.

Endpoint

POST /analyze

{
  "text": "privacy policy text here",
  "threshold": 0.75
}

Returns:

{
  "success": true,
  "topics": ["Third Party Sharing/Collection", "Data Retention", ...],
  "granular_topics": ["Sensitive Data for Advertising", ...],
  "annotated_html": "<div>...</div>",
  "clause_count": 12
}

GET /health

Returns { "status": "ok" }.