Spaces:
Sleeping
Sleeping
| title: Comment Guard API | |
| emoji: π‘οΈ | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: docker | |
| app_port: 8000 | |
| pinned: false | |
| license: mit | |
| short_description: AI-powered Telugu-English code-mixed comment moderation API | |
| # π‘οΈ Comment Guard β AI Comment Moderation API | |
| A real-time comment toxicity detection API for **Telugu-English code-mixed content**, powered by **MuRIL BERT** (Multilingual Representations for Indian Languages). | |
| ## π API Endpoints | |
| | Method | Endpoint | Description | | |
| |--------|----------|-------------| | |
| | `GET` | `/` | Health check | | |
| | `POST` | `/analyze` | Analyze a comment for toxicity | | |
| | `GET` | `/docs` | Interactive API documentation | | |
| ## π Usage | |
| ```bash | |
| curl -X POST "https://tejesh916k-comment-guard-api.hf.space/analyze" \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"text": "your comment here", "strictness": "high"}' | |
| ``` | |
| ## βοΈ Strictness Modes | |
| | Mode | Threshold | Best For | | |
| |------|-----------|----------| | |
| | `high` | 0.4 | Public figures / celebrities | | |
| | `low` | 0.7 | Friend groups / informal chats | | |