This web application allows users to input news content, and it classifies the news as either "Real" or "Fake." It uses a Decision Tree Classifier trained on a dataset of labeled news articles.
These instructions will help you set up and run the project on your local machine.
Clone the repository in your IDE. Before running the application, ensure you have the following dependencies installed:
- Python 3.x
- Flask
- scikit-learn
- NLTK
- joblib (for model persistence)
- matplotlib
- seaborn
You can install the required packages using pip
The dataset can be extracted from the compressed fake_or_real_news.csv file.
After performing all the prerequisites run these command in the terminal:
- python model.py
- python app.py
- Now go the the link that will be displayed in the terminal and there you go!!