File size: 1,058 Bytes
d82a2c9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
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 |