This is a Machine Learning application built with Python and Streamlit that classifies emails as spam or ham (not spam). It leverages a trained ML model to analyze text input and predict whether the email is spam or not.
- Interactive User Interface: Enter an email and instantly classify it as spam or not.
- Streamlit-Powered: Provides a seamless and responsive web interface.
- Pre-Trained ML Model: Uses a Naive Bayes classifier for efficient and accurate predictions.
- Custom Vectorization: Email text is preprocessed with a TF-IDF vectorizer to feed the model.
git clone https://github.com/ashishpatel8736/Spam-Classification-Model-Application.git
cd Spam-Classification-Model-Application
Ensure you have Python installed. Run the following to install the required libraries:
pip install -r requirements.txt
Run the Streamlit app:
streamlit run app.py
- Enter email text in the text box provided.
- Click Classify to check if the email is spam or not.
Spam-Classification-Model-Application/
├── app.py # Main application script
├── spam.pkl # Pre-trained model
├── vectorizer.pkl # TF-IDF Vectorizer
├── requirements.txt # List of dependencies
└── README.md # Project documentation
└── icons8-github-50.png
This project is licensed under the MIT License - see the LICENSE file for details.