Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Fake News Detector
|
| 3 |
+
emoji: 📰
|
| 4 |
+
colorFrom: indigo
|
| 5 |
+
colorTo: green
|
| 6 |
+
sdk: streamlit
|
| 7 |
+
sdk_version: "1.37.0"
|
| 8 |
+
app_file: app.py
|
| 9 |
+
pinned: false
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
# 📰 Fake News Detection App
|
| 13 |
+
|
| 14 |
+
This Streamlit app allows you to classify news articles as **Fake** or **Real** using multiple machine learning models (Logistic Regression, Naive Bayes, Random Forest, and SVM).
|
| 15 |
+
|
| 16 |
+
## 🚀 How it works
|
| 17 |
+
- Enter a news article in the text box.
|
| 18 |
+
- Choose a machine learning model.
|
| 19 |
+
- Get instant predictions about whether the news is **Fake** or **Real**.
|
| 20 |
+
|
| 21 |
+
## ⚙️ Models
|
| 22 |
+
The models are stored on the Hugging Face Hub for easy loading:
|
| 23 |
+
- Logistic Regression
|
| 24 |
+
- Naive Bayes
|
| 25 |
+
- Random Forest
|
| 26 |
+
- Support Vector Machine (SVM)
|
| 27 |
+
|
| 28 |
+
## 📦 Dependencies
|
| 29 |
+
Defined in `requirements.txt`:
|
| 30 |
+
- `streamlit`
|
| 31 |
+
- `scikit-learn`
|
| 32 |
+
- `huggingface-hub`
|
| 33 |
+
|
| 34 |
+
---
|
| 35 |
+
✅ Hosted with **Streamlit on Hugging Face Spaces**
|