A lightweight, ML-powered web app to detect whether a message is 🚫 spam or ✅ legit. Built using Python, scikit-learn, and Streamlit — no NLTK, no fuss!
🖥️ Frontend:
• Streamlit (for the interactive web interface)
🧪 Backend & ML:
• Scikit-learn
• Pandas, NumPy
• Regex (for tokenization & preprocessing)
• TF-IDF vectorizer + Multinomial Naive Bayes model
✨ Minimal UI — enter any message to test
📊 Pre-trained ML model (no need to retrain)
🧼 Clean, regex-based preprocessing
📦 No NLTK or heavy dependencies
💻 One-click local deployment
📁 email-spam-classifier/
├── app.py # Streamlit app script
├── vectorizer.pkl # Saved TF-IDF vectorizer
├── spam_model.pkl # Trained Naive Bayes model
└── README.md # You are here!
- ⬇️ Clone the repository:
git clone https://github.com/your-username/email-spam-classifier.git
cd email-spam-classifier
-
📦 Install the dependencies:
pip install -r requirements.txt
-
▶️ Launch the Streamlit app:streamlit run app.py