arpitasethiii's picture
Upload 4 files
d8bb4c0 verified
|
Raw
History Blame Contribute Delete
628 Bytes
metadata
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

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.