Ahmedhassan54/Spam-Ham-Classification
0
โ๏ธ Spam Message Classifier
Detect spam messages with 90%+ accuracy using machine learning. Built with Logistic Regression, TF-IDF, and deployed via Gradio.
๐ How It Works
- Paste any SMS/email message
- Get instant classification (Spam/Ham)
- See confidence score and detected keywords
- Try example messages below the input box
๐ Features
- Keyword detection (free, win, urgent, etc.)
- Confidence percentage
- Mobile-friendly interface
- Fast predictions (<1sec)
๐ ๏ธ Technical Stack
- Python 3.10
- Scikit-learn
- NLTK for text processing
- Gradio for UI
- Hugging Face Spaces for deployment
๐ Live Demo
๐ Try the live app
๐ฆ Local Setup
git clone https://huggingface.co/spaces/your-username/spam-classifier
cd spam-classifier
pip install -r requirements.txt
python app.py