Ankit74990 commited on
Commit
f7d64d5
·
verified ·
1 Parent(s): 6adab81

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +47 -6
README.md CHANGED
@@ -1,12 +1,53 @@
1
  ---
2
- title: TruthX Space
3
- emoji: 🔥
4
- colorFrom: green
5
- colorTo: indigo
6
  sdk: gradio
7
- sdk_version: 6.12.0
8
  app_file: app.py
9
  pinned: false
10
  ---
11
 
12
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.