A simple web app that detects whether a message is spam or ham (not spam) using Logistic Regression. Built with Python and Streamlit, it combines machine learning with rule-based keyword detection for accurate predictions.
- Predicts whether a message is spam or ham.
- Uses Logistic Regression trained on a dataset of SMS messages.
- Implements rule-based keyword checking to catch obvious spam.
- Clean and user-friendly web interface built with Streamlit.
Enter any message in the text box and click PREDICT. The app will display:
- π¨ Spam β if the message is spam
- β Ham β if the message is not spam
Example messages:
"Win a free Samsung phone!!"
β π¨ Spam"Hey, are we meeting today?"
β β Ham