CoolFace
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