Skip to content

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.

License

Notifications You must be signed in to change notification settings

ashishpatel8736/Spam-Classification-Model-Application

Repository files navigation

Spam-Classification-Model-Application

📧 About the Project

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.


✨ Features

  • 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.

🚀 How to Run

Step 1: Clone the Repository

git clone https://github.com/ashishpatel8736/Spam-Classification-Model-Application.git
cd Spam-Classification-Model-Application

Step 2: Install Dependencies

Ensure you have Python installed. Run the following to install the required libraries:

pip install -r requirements.txt

Step 3: Start the Application

Run the Streamlit app:

streamlit run app.py

Step 4: Classify Emails

  • Enter email text in the text box provided.
  • Click Classify to check if the email is spam or not.

📂 Repository Structure

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

🤝 Connect with Me

  • GitHub

  • LinkedIn


🛡️ License

This project is licensed under the MIT License - see the LICENSE file for details.

About

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.

Topics

Resources

License

Stars

Watchers

Forks