Skip to content

Raja786000/Fake-News-Detector

Repository files navigation

📰 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors