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
📦 Local Setup
git clone https://huggingface.co/spaces/your-username/spam-classifier
cd spam-classifier
pip install -r requirements.txt
python app.py