|
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
A newer version of the Gradio SDK is available: 6.30.0
metadata
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 model.
REST API
This Space also exposes a FastAPI endpoint alongside the Gradio UI.
POST /api/detect
Request:
{
"text": "Mage name Kamal, phone 071-1234567"
}
Response:
{
"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.