File size: 555 Bytes
61c5e06 | 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 | # Spam / Not Spam Classifier
A simple machine learning model built using **Logistic Regression + TF-IDF** to detect spam messages.
---
## How it works
- Input: Raw text message
- Preprocessing: TF-IDF Vectorizer
- Model: Logistic Regression
- Output: `spam` or `ham`
---
## Files included
- `model.pkl` — trained ML model
- `vectorizer.pkl` — TF-IDF vectorizer
- `inference.py` — simple inference script
---
## Example Usage
```python
from inference import predict
print(predict("You have won $1000!!!"))
|