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