Skip to content

SonarSource-Demos/python-spam-detector

 
 

Repository files navigation

Spam Detector App

This is a simple Flask web application that detects spam messages based on predefined spam words. The application uses SQLite as the database to store spam messages and spam words.

Installation

Prerequisites

  • Python 3.x
  • pip (Python package installer)

Steps

  1. Clone the repository:
git clone https://github.com/fiveshotsofespresso/spam-detector-app.git
cd spam-detector-app
  1. Create a virtual environment (optional but recommended):
python3 -m venv venv
source venv/bin/activate  # On Windows use `venv\Scripts\activate`
  1. Install the required packages:
pip install -r requirements.txt
  1. Run the application:
python3 app.py
  1. Open your web browser and navigate to:
http://127.0.0.1:5000/

Usage

  • Enter a message in the input field and click "Check" to see if the message might be spam.
  • The application will display all spam messages and related spam messages based on the input.

About

For use by Jeff Z & Brian C to demo AI for select audiences; please do not alter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%