This dataset contains around 5k sample mail with label 'Spam' and 'Ham'.
This project predicts whether entered mail is spam or not. I made it using Flask and Flasgger, built a model using Sklearn library.
- First install libraries from
requirement.txt file
. - Then run
flasgger_app.py
. It'll give you localhost, go to browser and searchlocalhost/apidocs
which leads to this page.
- 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 giveThis Mail is not Spam.
- For current input it gave
This Mail is Spam.