CoolFace
Apppublic

chaitanyakb181005/spam_classifier

sourceHugging Faceupdated 7mo agoView on Hugging Face
0likes
App README

Spam Classifier

A machine learning-powered spam classification application that identifies whether text is spam or not spam.

Features

  • โ€”๐ŸŽฏ Real-time spam detection
  • โ€”๐ŸŒ User-friendly web interface
  • โ€”๐Ÿ”Œ REST API endpoint for programmatic access
  • โ€”๐Ÿณ Docker-based deployment
  • โ€”๐Ÿ“Š Confidence scores for predictions

Model

The classifier uses:

  • โ€”TF-IDF Vectorization for text feature extraction
  • โ€”Logistic Regression for classification
  • โ€”Trained on a comprehensive spam dataset

Usage

Web Interface

Simply enter your text in the input field and click "Classify Text" to get instant results.

API Endpoint

bash
curl -X POST https://huggingface.co/spaces/chaitanyakb181005/spam_classifier/api/predict \
  -H "Content-Type: application/json" \
  -d '{"text": "Your text here"}'

Technology Stack

  • โ€”Flask (Web Framework)
  • โ€”scikit-learn (Machine Learning)
  • โ€”Docker (Deployment)
  • โ€”Gunicorn (Production Server)