File size: 702 Bytes
24b3cda
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
title: SMS Spam Classifier
emoji: 📱
colorFrom: blue
colorTo: red
sdk: gradio
sdk_version: 4.0.0
app_file: app.py
pinned: false
---

# SMS Spam Classifier

This application uses a bidirectional LSTM model to classify SMS messages as either spam or legitimate (ham). Simply enter your text message, and the model will predict whether it's spam or not, along with a confidence score.

## Usage

1. Enter your text message in the input box
2. Click submit
3. The model will return its prediction (spam/ham) and confidence level

## Model

The classifier uses a bidirectional LSTM architecture with:

- Word embeddings
- 2 LSTM layers
- Dropout for regularization
- Dense layers with ReLU activation