Fake news is a significant issue in today's digital world. Our browser extension leverages AI to analyze and designed to detect and analyze fake news articles in real-time. The extension integrates Natural Language Processing (NLP) and Machine Learning (ML) to assess the credibility of news articles and provide users with a trustworthiness score.
🎯 Key Features
✅ Real-time Fake News Detection – Analyzes web content and assigns a credibility score.
✅ Machine Learning Model – Utilizes a trained Bidirectional LSTM model for classification.
✅ Browser Integration – Works as a Chrome/Firefox extension for seamless browsing.
✅ Interactive UI – Displays warnings and trust scores for news articles.
- Frontend: Vite + React
- Backend: Flask (Python API)
- Machine Learning: TensorFlow, Keras, Bidirectional LSTM
- Data Handling: Pandas, NumPy, NLTK, Scikit-learn
🔧 Prerequisites
Google Chrome or Firefox
Python 3.8+
Pip & Virtual Environment
🛠️ Steps to Install
git clone https://github.com/sarvesh123githubacc/TeamX
cd fake-news-extension
pip install -r requirements.txt
Run the following script to train the fake news classifier:
python predictions.ipynb
This will generate predictions.pkl
in the project folder.
python app.py
The API will be available at http://localhost:5000/predict
.
- Open Chrome and go to
chrome://extensions/
- Enable Developer Mode (top-right corner)
- Click Load Unpacked and select the
extension
folder. - The extension is now ready to use!
🎥 Demo Video 📌 [https://drive.google.com/file/d/1tpLe3GoQFMWZLBBP5Pezq8f8ZHZ48iWX/view]
Want to improve this project? Follow these steps:
- Fork the repository
- Create a new branch
git checkout -b feature-branch
- Commit your changes
git commit -m "Added a new feature"
- Push to your branch
git push origin feature-branch
- Open a Pull Request 🚀
- ✅ Deploy the Flask API online (e.g., Render, AWS, Hugging Face Spaces)
- ✅ Improve model accuracy
- ✅ Add Fact-checking API integration (Snopes, Google Fact Check)
- ✅ Build a Firefox version of the extension
📄 This project is licensed under the MIT License.
🚀 Developed by [TeamX] for FOSS Hack 2025 🚀