Skip to content

aniket53/Spam-Mail-Detection

Repository files navigation

Spam Mail Detection

Provide your mail body as input to the trained machine learning model and ML model will tell you that whether that mail is SPAM or HAM mail.

Table of Contents

  1. Deployment
  2. Software & Tools
  3. Commands
  4. Features
  5. Developers
  6. Feedback

Deployment

  spam-mail-detector-cicd.herokuapp.com

Software & Tools

  1. Github Account
  2. Visual Studio Code IDE
  3. Heroku Account
  4. Git CLI

Commands

  1. Create a new Environment
  conda create -p venv python==3.7 -y
  1. To Run the Environment
  conda activate venv/
  1. Create "requirements.txt"

  2. Install all dependencies from "requirements.txt" file

  pip install -r requirements.txt
  1. Git Setup
  git config --global user.name
  git config --global user.email
  git add . 
  git commit -m "commit message" 
  git push origin main
  1. Run flask app
  python app.py
  1. Heroku Deployment
  Create a Procfile
    web: gunicorn app:app
  1. Heroku deployment using Docker and Github Actions(CICD Pipeline)
  Create two folders
    .github
    .github/workflows
  Create .yaml file
    main.yaml
  1. Github Actions
  Go to Repo settings->Secrets ->Actions ->New secret Key ->Add all the keys

Features

  1. Model is trained using Logistic Regression algorithm based on supervised learning.

  2. Attribute Information (in order):

     - mail-body
    
  3. SPAM- mail is categorized as spam mail.

  4. HAM- mail is categorized as normal mail.

Developers

Feedback

Feel free to provide the feedback.

Contact Here:- [email protected]