|
Download README.md from Ramosh99/test: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/spaces/Ramosh99/test/resolve/main/README.md
- Command line
-
hf download hf://spaces/Ramosh99/test/README.md
-
curl -L -o README.md https://huggingface.co/spaces/Ramosh99/test/resolve/main/README.md
1.1 kB
| title: Sinhala English Codemix PII Detector | |
| emoji: ๐ | |
| colorFrom: blue | |
| colorTo: indigo | |
| sdk: gradio | |
| sdk_version: "5.0.0" | |
| python_version: "3.10" | |
| app_file: app.py | |
| pinned: false | |
| # ๐ Sinhala-English Codemix PII Detector | |
| Detects PII entities (PERSON, ORG, PHONE, EMAIL, NIC, etc.) in Sinhala-English code-mixed text using the [`Ramosh99/mixcode_pii_detector`](https://huggingface.co/Ramosh99/mixcode_pii_detector) model. | |
| ## REST API | |
| This Space also exposes a FastAPI endpoint alongside the Gradio UI. | |
| ### `POST /api/detect` | |
| **Request:** | |
| ```json | |
| { | |
| "text": "Mage name Kamal, phone 071-1234567" | |
| } | |
| ``` | |
| **Response:** | |
| ```json | |
| { | |
| "text": "Mage name Kamal, phone 071-1234567", | |
| "entities": [ | |
| { "entity": "PERSON", "start": 10, "end": 15, "score": 0.9821 }, | |
| { "entity": "PHONE", "start": 23, "end": 34, "score": 0.9934 } | |
| ], | |
| "redacted_text": "Mage name [PERSON], phone [PHONE]" | |
| } | |
| ``` | |
| ### `GET /api/health` | |
| Returns model status. | |
| ### `GET /docs` | |
| Interactive Swagger UI for the API. | |
| ## Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |