The goal of this was to build a flask api for spam detection model in python to automatically classify a message as either spam or ham(legitimate messages).
flaskSpam.py - main file templates - This folder contains html for home and result page spam.pkl - This pickle file for nlp model andCountVectorizer spamClassifier - contains predict script spam_ham_dataset- This folderconatins source file for trainning the model. requirement.txt- contains requirement file to run the model on cloud.
Dataset: https://www.kaggle.com/uciml/sms-spam-collection-dataset