SMS Spam Detector

Fine-tuned BERT model that detects whether a message is Spam or Ham (Not Spam).

Model Details

  • Base Model: bert-base-uncased
  • Task: Binary Text Classification
  • Labels:
    • 0: Ham (legitimate message)
    • 1: Spam (unwanted/suspicious message)

Accuracy

95%+ on test set

How to Use

from transformers import pipeline

classifier = pipeline("text-classification", model="Aikaksh-Singh-Routela/spam-detector-model")

result = classifier("Congratulations! You've won $1000!")
print(result)
Downloads last month
50
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using Aikaksh-Singh-Routela/spam-detector-model 1