--- title: Fake News Detector emoji: 🔍 colorFrom: blue colorTo: green sdk: gradio sdk_version: 4.44.1 python_version: 3.10.13 app_file: app.py pinned: false license: mit --- # 🧠 Fake News Detector — BERT Model A **BERT-based Fake News Detection** system fine-tuned on the **WELFake Dataset** (72,134 articles). ## How It Works 1. **Input**: Paste any news article text 2. **BERT Model**: Fine-tuned `bert-base-uncased` classifies the text 3. **Heuristic Engine**: Detects conspiracy phrases, clickbait patterns, caps ratio 4. **Ensemble**: Combines BERT (85%) + Heuristic (15%) for final verdict 5. **Output**: FAKE / SUSPICIOUS / REAL + Confidence score ## Model Details | Property | Value | |----------|-------| | Base Model | `bert-base-uncased` | | Fine-tuned On | WELFake Dataset (30K samples) | | Epochs | 3 | | Max Length | 256 tokens | | Labels | 0 = Fake, 1 = Real | ## Team Built by Pankaj Kumar, Ankit Kumar, Amit Yadav, Satyarthi Prakash, and Md Fardin.