Spaces:
Paused
Paused
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,12 +1,53 @@
|
|
| 1 |
---
|
| 2 |
-
title: TruthX
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: TruthX Fake News Detector
|
| 3 |
+
emoji: 🔍
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.44.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# TruthX - Fake News Detection
|
| 13 |
+
|
| 14 |
+
TruthX uses state-of-the-art DistilBERT model to detect fake news articles with high accuracy.
|
| 15 |
+
|
| 16 |
+
## Features
|
| 17 |
+
|
| 18 |
+
- **Real-time Detection**: Get instant predictions on news authenticity
|
| 19 |
+
- **Confidence Score**: See the model's confidence level
|
| 20 |
+
- **Multiple Models**: Supports BERT, DistilBERT, and RoBERTa models
|
| 21 |
+
|
| 22 |
+
## How to Use
|
| 23 |
+
|
| 24 |
+
1. Enter any news article or headline in the text box
|
| 25 |
+
2. Click "Submit" to get the prediction
|
| 26 |
+
3. View the classification (Real/Fake) with confidence scores
|
| 27 |
+
|
| 28 |
+
## Technical Details
|
| 29 |
+
|
| 30 |
+
- **Model**: DistilBERT fine-tuned for fake news detection
|
| 31 |
+
- **Input**: Text up to 512 tokens
|
| 32 |
+
- **Output**: Classification label with probability scores
|
| 33 |
+
|
| 34 |
+
## API Access
|
| 35 |
+
|
| 36 |
+
You can also access the model programmatically via the Hugging Face Inference API:
|
| 37 |
+
|
| 38 |
+
```python
|
| 39 |
+
import requests
|
| 40 |
+
|
| 41 |
+
API_URL = "https://api-inference.huggingface.co/models/Ankit74990/TruthX-DISTILBERT"
|
| 42 |
+
headers = {"Authorization": "Bearer YOUR_TOKEN"}
|
| 43 |
+
|
| 44 |
+
def query(text):
|
| 45 |
+
response = requests.post(API_URL, headers=headers, json={"inputs": text})
|
| 46 |
+
return response.json()
|
| 47 |
+
|
| 48 |
+
result = query("Your news text here")
|
| 49 |
+
```
|
| 50 |
+
|
| 51 |
+
## Model Card
|
| 52 |
+
|
| 53 |
+
This space uses the [TruthX-DISTILBERT](https://huggingface.co/Ankit74990/TruthX-DISTILBERT) model.
|