Skip to content

This project will teach you how we can use Twilio and TensorFlow to build a whatsapp based service which can predict if a given news article is fake or not!

License

Notifications You must be signed in to change notification settings

JBAhire/Fake-News-Foe

Repository files navigation

Fake-News-Foe

Fake news has become a huge issue in our digitally-connected world and it is no longer limited to little squabbles! fake news spreads like wildfire and is impacting millions of people every day.

How do you deal with such a sensitive issue? Countless articles are being churned out every day on the internet -- how do you tell real from fake? It's not as easy as turning to a simple fact-checker which is typically built on a story-by-story basis. As developers, can we turn to machine learning?

Read the detailed article here: https://dev.to/twilio/fake-news-foe-machine-learning-and-twilio-5fln

Aim:

We will be building a WhatsApp based service which will accept news headlines from the user and predict if given news is fake news or not.

Requirements:

Demo:

  1. Run app.py

Running Flask App

  1. Your Flask app will need to be visible from the web so Twilio can send requests to it. Ngrok lets us do this. With it installed, run the following command in your terminal in the directory your code is in. Run ngrok http 5000 in a new terminal tab.

ngrok

  1. Grab that ngrok URL to configure twilio whatsapp sandbox. We will try this on WhatsApp! So let’s go ahead and do it (either on our Sandbox if you want to do testing or your main WhatsApp Sender number if you have one provisioned). In a screenshot below we show the Sandbox page:

Configuring Twilio Sandbox

And we’re good to go! Let’s test our application on WhatsApp! We can send some news headlines or facts to this sandbox and get predictions in return if everything works as expected.

Test App

Hurray! You wanna try this? Complete code is available on GitHub.

References:

  1. "Liar, Liar Pants on Fire": A New Benchmark Dataset for Fake News Detection
  2. Twilio WhatsApp API
  3. Fake News Detection with LIAR Dataset
  4. What is Fake News?
  5. FEVER: a large-scale dataset for Fact Extraction and VERification

About

This project will teach you how we can use Twilio and TensorFlow to build a whatsapp based service which can predict if a given news article is fake or not!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages