Bishwaprotapi/Fake_News_Detector

0

stars

4

commits

Python

primary language

Jul 1, 2026

updated

README

Fake News Detector

A machine learning-based fake news detection system built with Flask, PyTorch, and Transformers.

Author

Bishwaprotap Ray

Technologies Used

  • Python - Core programming language
  • Flask - Web framework for the API
  • PyTorch - Deep learning framework
  • Transformers (Hugging Face) - Pre-trained NLP models
  • Scikit-learn - Machine learning utilities
  • Pandas - Data manipulation and analysis
  • NumPy - Numerical computing
  • BeautifulSoup4 - Web scraping
  • Requests - HTTP library

Features

  • Detect fake news using advanced NLP models
  • Web-based interface for easy interaction
  • RESTful API for integration
  • Data scraping capabilities
  • Model training and evaluation

Installation

  1. Clone the repository:
git clone https://github.com/Bishwaprotapi/Fake_News_Detector.git
cd Fake_News_Detector
  1. Create a virtual environment:
python -m venv .venv
.venv\Scripts\activate  # On Windows
source .venv/bin/activate  # On Linux/Mac
  1. Install dependencies:
pip install -r requirements.txt

Usage

  1. Run the Flask application:
python app.py
  1. Open your browser and navigate to http://localhost:5000

  2. Enter news text to check if it's fake or real

Project Structure

Fake_News_Detector/
├── app.py              # Main Flask application
├── load_dataset.py     # Dataset loading utilities
├── save_tokenizer.py   # Tokenizer saving utilities
├── model/              # Model files and prediction logic
├── data/               # Dataset files
├── scraper/            # Web scraping modules
├── templates/          # HTML templates
├── utils/              # Utility functions
└── requirements.txt    # Python dependencies

API Endpoint

  • POST /predict - Submit news text for fake news detection
    • Request body: {"text": "your news text here"}
    • Response: {"result": "fake" or "real"}

License

This project is open source and available under the MIT License.

Contributors

Bishwaprotapi

4 commits

Bishwaprotapi/Fake_News_Detector

0

stars

4

commits

Python

primary language

Jul 1, 2026

updated

README

Fake News Detector

A machine learning-based fake news detection system built with Flask, PyTorch, and Transformers.

Author

Bishwaprotap Ray

Technologies Used

  • Python - Core programming language
  • Flask - Web framework for the API
  • PyTorch - Deep learning framework
  • Transformers (Hugging Face) - Pre-trained NLP models
  • Scikit-learn - Machine learning utilities
  • Pandas - Data manipulation and analysis
  • NumPy - Numerical computing
  • BeautifulSoup4 - Web scraping
  • Requests - HTTP library

Features

  • Detect fake news using advanced NLP models
  • Web-based interface for easy interaction
  • RESTful API for integration
  • Data scraping capabilities
  • Model training and evaluation

Installation

  1. Clone the repository:
git clone https://github.com/Bishwaprotapi/Fake_News_Detector.git
cd Fake_News_Detector
  1. Create a virtual environment:
python -m venv .venv
.venv\Scripts\activate  # On Windows
source .venv/bin/activate  # On Linux/Mac
  1. Install dependencies:
pip install -r requirements.txt

Usage

  1. Run the Flask application:
python app.py
  1. Open your browser and navigate to http://localhost:5000

  2. Enter news text to check if it's fake or real

Project Structure

Fake_News_Detector/
├── app.py              # Main Flask application
├── load_dataset.py     # Dataset loading utilities
├── save_tokenizer.py   # Tokenizer saving utilities
├── model/              # Model files and prediction logic
├── data/               # Dataset files
├── scraper/            # Web scraping modules
├── templates/          # HTML templates
├── utils/              # Utility functions
└── requirements.txt    # Python dependencies

API Endpoint

  • POST /predict - Submit news text for fake news detection
    • Request body: {"text": "your news text here"}
    • Response: {"result": "fake" or "real"}

License

This project is open source and available under the MIT License.

Contributors

Bishwaprotapi

4 commits

Languages

Python

93.3%

HTML

6.7%