Skip to content

BKY1601/spamly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📩 Spamly – SMS Spam Classifier

Spamly is a machine learning-based SMS spam classifier built using Python, Scikit-learn, and Streamlit. It uses Natural Language Processing (NLP) techniques such as TF-IDF vectorization and Multinomial Naive Bayes to classify incoming messages as either spam or ham (not spam). The project offers an interactive web interface that allows users to test messages in real-time.


Features

  • Predicts whether an SMS message is spam or ham
  • Trained on a real-world dataset of spam and ham messages
  • Uses TF-IDF for text vectorization
  • Deployed as a web app using Streamlit
  • Simple UI for live input and prediction

Tech Stack

  • Python
  • Scikit-learn
  • Pandas
  • NumPy
  • Streamlit
  • Pickle (for saving model and vectorizer)

Project Structure

├── spam.csv # Dataset
├── sms_model.py # Model Script
├── spam_classifier_model.pkl # Trained spam classifier model
├── tfidf_vectorizer.pkl # TF-IDF vectorizer
├── app.py # Streamlit web application
├── requirements.txt # List of dependencies
└── README.md # This file

How to Run the Project

  1. Clone the repository bash git clone https://github.com/yourusername/spamly.git cd spamly

  2. Install dependencies pip install -r requirements.txt

  3. Run the Streamlit app streamlit run app.py

  4. Visit the app in your browser Default: http://localhost:8501


📊 Sample Output You enter: "Congratulations! You've won a free iPhone. Click here to claim."

Spamly predicts: Prediction: SPAM

📈 Future Enhancements Add support for multiple languages

Track message history in session

Deploy online using platforms like Render or Hugging Face Spaces


👨‍💻 Author

Bipin Yadav
📧 bipinyadav919@gmail.com
🔗 LinkedIn
🔗 GitHub
🔗 Live project Link

About

The Spamly Streamlit app uses a machine learning model to classify SMS messages as Spam or Ham (Not Spam). It’s built using Python, scikit-learn, and Streamlit. Users can enter a message, and the app will instantly predict whether it's a spam message or not using a Naive Bayes classifier trained on TF-IDF features.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages