This project is a Fake News Detection System built using Deep Learning (LSTM/BERT) and NLP techniques. It classifies news articles as Real or Fake based on textual content. The model is trained on the ISOT Fake News Dataset and deployed using Streamlit & Hugging Face Spaces.
🔗 Live Demo: Click here to try it out!
✅ Detects Fake News with high accuracy using Deep Learning
✅ Uses LSTM/BERT for powerful text classification
✅ Preprocessing with Tokenization & Embeddings
✅ Deployed using Streamlit & Hugging Face
✅ Open-source and customizable
- Source: ISOT Fake News Dataset
- Classes:
Real,Fake - Columns:
title,text,label
- Python 🐍
- TensorFlow/Keras for Deep Learning 🔥
- NLTK & Tokenizer for Text Processing ✂️
- Streamlit for Web Deployment 🌐
- Hugging Face Spaces for Hosting ☁️
git clone https://github.com/SatyamInCode/Fake_News_Detector.git
cd Fake-News-Detectorpip install -r requirements.txtstreamlit run app.pyThe model was trained using LSTM on tokenized sequences from news articles.
Check the Fake_News_Detector.ipynb file for detailed training steps.
Steps Involved:
- Data Cleaning: Removing stopwords, punctuation, and special characters
- Tokenization & Embeddings: Using
Tokenizerandpad_sequences - Model Training: LSTM model training with
Adamoptimizer - Evaluation: Precision, Recall, and F1-score calculation
git add .
git commit -m "Initial Commit"
git push origin main- Go to Hugging Face Spaces
- Create a new Space → Select Streamlit
- Connect to your GitHub repository
- Deploy and enjoy! 🎉
| Metric | Score |
|---|---|
| Accuracy | 99.94% |
| Precision | 1.00 |
| Recall | 1.00 |
| F1-score | 1.00 |
🔍 Training Graphs & Logs: Available in Training Results
- ✅ Integrate BERT for better accuracy
- ✅ Enable API Support for wider usability
- ✅ Enhance UI/UX for a smoother experience
- Fork the repo
- Create a new branch (
feature-branch) - Commit your changes & push
- Submit a Pull Request
For queries, reach out on 💼 GitHub → SatyamInCode