Spaces:
Runtime error
Runtime error
File size: 628 Bytes
1713d80 d8bb4c0 1713d80 d8bb4c0 | 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 | ---
title: Clickbait Detector API
emoji: 🎯
colorFrom: purple
colorTo: pink
sdk: docker
pinned: false
---
# Clickbait Detector API
AI-powered API to detect and neutralize clickbait headlines using DistilBERT and T5.
## Endpoints
- `GET /` - API info
- `POST /detect` - Detect if headline is clickbait
- `POST /rewrite` - Rewrite clickbait to neutral
- `POST /analyze` - Detect + rewrite in one call
## Usage
```python
import requests
response = requests.post(
"https://YOUR-SPACE.hf.space/detect",
json={"headline": "You Won't Believe What Happened!"}
)
print(response.json())
```
Powered by DistilBERT and T5.
|