Skip to content

Latest commit

Β 

History

History
58 lines (43 loc) Β· 1.3 KB

File metadata and controls

58 lines (43 loc) Β· 1.3 KB

πŸ“° Fake News Detection using Flask & Machine Learning

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).

πŸš€ Features

  • 🌐 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

πŸ› οΈ Technologies Used

  • Python
  • Flask
  • Scikit-learn
  • Pandas, NumPy
  • TF-IDF Vectorizer
  • HTML, CSS (Vanilla)
  • NLTK (for text cleaning)

πŸ“‚ Folder Structure


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


βš™οΈ How to Run Locally

  1. Clone this repo:
    git clone https://github.com/your-username/FakeNewsDetection-Flask.git
    cd FakeNewsDetection-Flask