Demo - https://www.youtube.com/watch?v=jiv0iyH07x4&t=6s
This projects is a submission for Microsoft AI Hackathon 2024 . The topic of fake news detection on social media has recently attracted tremendous attention. The basic countermeasure of comparing websites against a list of labeled fake news sources is inflexible, and so a machine learning approach is desirable. Our project aims to use Natural Language Processing to detect fake news directly, based on the text content of news articles.
Develop a tool that uses machine learning algorithms to identify and flag misleading or fabricated news articles from online sources. The system should analyze text content, verify sources, and provide users with credibility scores.
Created a Website showing Real Time News and in real time , ML model assigns a reliability % score and colored shield based on whether news is real or fake . User can search for any news article by pasting its url in the search box at the top of the website . User will see the title and short summary of the article and a reliability % score and get to know whether the news article is real or fake .
Here are some key features of the Website :
- Clean Design: A simple and intuitive layout for easy navigation.
- Easy Navigation: Clear menus and categories for quick access to different news sections.
- Top News Section: Display the latest and most important news stories prominently.
- Categorized News: Sections for different topics such as World, Business, Technology, Sports, and Entertainment.
- Search Functionality: Basic search to get the article summary and its reliability score .
- Providing Feedback: Provide feedback regarding the reliability of the article .
-
Clone the repo to your local machine
> git clone https://github.com/VectorNd/FakeNewsDetection.git
> cd FakeNewsDetection
-
Now go inside the Backend folder
> cd Backend
-
Make sure you have all the dependencies installed
> pip install -r requirements.txt
-
You are good to go now for starting the backend server
> python main.py
-
Now the backend server starts running on the localhost http://127.0.0.1:5000
-
Now add another new terminal window .
-
Go inside the Frontend folder
> cd Frontend
-
Now install all the node modules
> npm install
-
Now start the frontend Server
> npm run start
-
Now the frontend server starts running on the localhost http://127.0.0.1:3000 and you are into the website
The file structure is the following
.
|
+-- Backend
| +-- templates
| +-- index.html
| +-- .gitattributes
| +-- .gitignore
| +-- feedback.csv
| +-- main.py
| +-- model.py
| +-- newsfetch.py
| +-- requirements.txt
+-- Frontend
| +-- public
| +-- *.png ,*.txt , ..
| +-- src
| +-- App.css , App.js , Main.js , ...
| +-- .gitignore
| +-- package-lock.json
| +-- package.json
+-- README.md