A machine learning-based fake news detection system built with Flask, PyTorch, and Transformers.
Bishwaprotap Ray
git clone https://github.com/Bishwaprotapi/Fake_News_Detector.git
cd Fake_News_Detector
python -m venv .venv
.venv\Scripts\activate # On Windows
source .venv/bin/activate # On Linux/Mac
pip install -r requirements.txt
python app.py
Open your browser and navigate to http://localhost:5000
Enter news text to check if it's fake or real
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
POST /predict - Submit news text for fake news detection
{"text": "your news text here"}{"result": "fake" or "real"}This project is open source and available under the MIT License.
4 commits
Python
93.3%
HTML
6.7%
A machine learning-based fake news detection system built with Flask, PyTorch, and Transformers.
Bishwaprotap Ray
git clone https://github.com/Bishwaprotapi/Fake_News_Detector.git
cd Fake_News_Detector
python -m venv .venv
.venv\Scripts\activate # On Windows
source .venv/bin/activate # On Linux/Mac
pip install -r requirements.txt
python app.py
Open your browser and navigate to http://localhost:5000
Enter news text to check if it's fake or real
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
POST /predict - Submit news text for fake news detection
{"text": "your news text here"}{"result": "fake" or "real"}This project is open source and available under the MIT License.
4 commits
Python
93.3%
HTML
6.7%