Skip to content

Spam detection model which predicts whether mail is spam or not. Simple Front end has built using Flask and Flasgger.

Notifications You must be signed in to change notification settings

kishumds/spam-detection

Repository files navigation

spam-detection

Spam detection model which predicts whether mail is spam or not.

stephen-phillips-hostreviews-co-uk-3Mhgvrk4tjM-unsplash

About Dataset

This dataset contains around 5k sample mail with label 'Spam' and 'Ham'.

About Project

This project predicts whether entered mail is spam or not. I made it using Flask and Flasgger, built a model using Sklearn library.

How to run

  • First install libraries from requirement.txt file.
  • Then run flasgger_app.py. It'll give you localhost, go to browser and search localhost/apidocs which leads to this page.

image

  • Then click on 'Try it out' and enter your mail in a given text box, then hit 'Execute' button.
  • Prediction will appear in below as shown in screen. For spam it'll give This Mail is Spam. otherwise give This Mail is not Spam.
  • For current input it gave This Mail is Spam.

image

About

Spam detection model which predicts whether mail is spam or not. Simple Front end has built using Flask and Flasgger.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published