This is a web application that detects whether a given news article is Real or Fake using Natural Language Processing (NLP) and Machine Learning (Logistic Regression).
- 🌐 Web interface built using Flask, HTML, CSS, and JavaScript
- 🧠 NLP-based text classification using TF-IDF and Logistic Regression
- ✅ Detects both titles and full article text
- 📊 Displays prediction with confidence and reasoning
- 💬 Flash messages and input validation
- Python
- Flask
- Scikit-learn
- Pandas, NumPy
- TF-IDF Vectorizer
- HTML, CSS (Vanilla)
- NLTK (for text cleaning)
FakeNewsDetection-Flask/
├── app.py
├── requirements.txt
├── README.md
├── model/
│ ├── fake\_news\_model.pkl
│ └── tfidf\_vectorizer.pkl
├── static/
│ └── style.css
├── templates/
│ ├── index.html
│ ├── check.html
│ └── result.html
- Clone this repo:
git clone https://github.com/your-username/FakeNewsDetection-Flask.git cd FakeNewsDetection-Flask