caesarw0 / Techniators

πŸ“° A Streamlit web application that detects fake news articles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Techniators πŸ’» Fake News Detector πŸ—žοΈ

This is a Streamlit web application that detects fake news articles using natural language processing (NLP) and machine learning (ML) algorithms.

πŸ“° Demo

demo

πŸ“Š Features

The Fake News Detector app can:

  • βœ… Analyze the text of a news article and predict whether it is fake or real
  • βœ… Show the client the prediction result of the article being fake or real
  • βœ… Allow the client to input their own news article for analysis
  • βœ… Display a word cloud and word frequency plot from the new article input

Technologies

This application was built using:

  • Python
  • Streamlit
  • Scikit-learn
  • Natural Language Toolkit (NLTK)
  • AWS EC2
  • AWS Sagemaker
  • AWS S3

Installation

Local

To install and run the app locally, follow these steps:

Clone the repository: git clone https://github.com/UBC-MDS/Techniators.git

Install the required packages: pip install -r requirements.txt

Start the app: streamlit run streamlit_app.py

Docker

To install and launch the docker version of the streamlit application, follow the below steps:

docker pull caesarwongw/streamlit-docker1 
docker run -p 8501:8501 caesarwongw/streamlit-docker1

For more details on the Docker Image, checkout the Docker Hub link.

Usage

Once the app is running, you can:

  1. Enter the text of a news article in the input area
  2. Click the "Submit" button to see whether the article is fake or real
  3. View the probability score to see how confident the model is in its prediction
  4. View the word cloud and frequency plot for more insights about your input news article

Contributing

Team Members: Sarah Abdelazim, Lisa Sequeira, Caesar Wong

If you'd like to contribute to the Techniators - Fake News Detector application, follow these steps:

  1. Read our Contributing document
  2. Fork the repository
  3. Create a new branch for your feature: git checkout -b my-feature-branch
  4. Make your changes and commit them: git commit -m "Add new feature"
  5. Push your changes to your forked repository: git push origin my-feature-branch
  6. Create a pull request from your branch to the main branch of the original repository

Special Thanks

We would like to extend our most sincere thanks to the HackHPC Hack the Threat hackathon organisers for providing us with the opportunity to participate part and showcase our project. We had a place to work together with people who shared our interests throughout the hackathon to accomplish a common objective. We appreciate the organisers' assistance and direction throughout the event.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

πŸ“° A Streamlit web application that detects fake news articles

License:MIT License


Languages

Language:Jupyter Notebook 98.8%Language:Python 1.1%Language:Dockerfile 0.1%