Spaces:
Sleeping
Sleeping
| title: Privacy Classifier | |
| emoji: π | |
| colorFrom: red | |
| colorTo: green | |
| sdk: gradio | |
| sdk_version: 4.44.0 | |
| python_version: "3.11" | |
| app_file: app.py | |
| pinned: false | |
| license: apache-2.0 | |
| # Privacy Classifier Demo | |
| Classify prompts to determine if they contain sensitive information that should stay local or if they're safe to send to cloud LLM services. | |
| ## Classifications | |
| - **π΄ KEEP_LOCAL**: Contains PII, sensitive data, or private information | |
| - **π’ ALLOW_CLOUD**: Safe to process with cloud-based AI services | |
| ## Model | |
| This demo uses [jonmabe/privacy-classifier-electra](https://huggingface.co/jonmabe/privacy-classifier-electra), an ELECTRA-based classifier fine-tuned to detect sensitive information in prompts. | |
| ## Use Cases | |
| - Privacy-aware prompt routing | |
| - Data loss prevention for LLM applications | |
| - Compliance with data protection regulations | |
| ## Examples | |
| | Prompt | Classification | | |
| |--------|---------------| | |
| | "What is the capital of France?" | ALLOW_CLOUD | | |
| | "My SSN is 123-45-6789" | KEEP_LOCAL | | |
| | "Write me a poem about the ocean" | ALLOW_CLOUD | | |
| | "My password is hunter2" | KEEP_LOCAL | | |