Fake News Detection using Machine Learning | Flask Web App | Tutorial with #code | #fakenews

Updated: Sep 10, 2021

Hello readers, I am back with another tutorial, here we are going to learn about how we can create our NLP Project, which is Fake News Detection. So without wasting time let's start.


  • Dataset - Download

  • CSS/HTML/JS for Flask App - Download

  • Sklearn

  • Flask

  • Pandas

  • Jupyter Notebook

Let's start the code

Let's take a look at the data.

Now, let's split the data into training and testing, and fit the algorithm.

Now, let's check our model is working on the custom news or not, let's build a function for it and we will save the model into a pickle file so later we can use the model in the flask app.

Let' see more results.

Now, let's create Flask app for it.

Download necessary HTML/CSS /JS files from my GitHub.

Let's see.

Let's check the output.

Full Code:- GitHub

I hope you got everything related to the project, if you didn't get anything let me know. You can watch the full tutorial on my youtube channel also.

Like & share this article, and don't forget to subscribe to Machine Learning Hub on youtube.


Here we are just asking for the donations, if you want to donate us something then my UPI id and Paypal ID are mentioned below. We are creating quality content on youtube and making blogs for the same and publishing code openly. We are doing an open-source contribution.

UPI ID - kushalbhavsar58@ybl

Paypal - https://paypal.me/spidy1820

Wise - kushalbhavsar58@gmail.com

Note - We are just asking for donations.

Thanks & Regards

Machine Learning Hub

4,511 views0 comments