Team Ai
Apppublic

Ahmedhassan54/Spam-Ham-Classification

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

โœ‰๏ธ 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

  1. 1.Paste any SMS/email message
  2. 2.Get instant classification (Spam/Ham)
  3. 3.See confidence score and detected keywords
  4. 4.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

bash
git clone https://huggingface.co/spaces/your-username/spam-classifier
cd spam-classifier
pip install -r requirements.txt
python app.py