This is a simple web app that checks if a message is Spam or Ham.
It is built using Streamlit, Python, and a machine-learning model trained on email data.
- You type any message into the text box.
- The app changes your text into numbers using a vectorizer.
- The trained model predicts if the message is:
- ✅ HAM (safe)
⚠️ SPAM (unsafe)
- Python
- Streamlit
- Scikit-Learn
- Pickle (for saving model + vectorizer)
- modelh5.pkl → trained ML model
- extraction.pkl → vectorizer used during training
- app.py → main Streamlit app
- spam.ipynb → training notebook (model creation)
-
Install required libraries:
pip install streamlit scikit-learn pandas numpy
-
Run the Streamlit app:
streamlit run app.py