Skip to content

Conversation

@007-SARANG
Copy link

… interface with color highlighting for predictions

Closes: #70

Describe the add-ons or changes you've made 📃

#Spam Detection Model Training Script:

  • Added train_spam_model.py to download, preprocess, balance, and train a spam classifier using the SMS Spam Collection dataset.

  • The script balances the dataset, trains a Naive Bayes model, evaluates it, and saves both the model and vectorizer as .pkl files.
    #Streamlit Web Interface:

  • Added spam_detection_app.py, a user-friendly web app for spam detection.

  • Users can input a message and get an instant prediction.

  • The result is visually highlighted: green for not spam, red for spam, making it easy to interpret.
    #Data and Model Files:

  • The dataset (SMSSpamCollection), trained model (spam_model.pkl), and vectorizer (spam_vectorizer.pkl) are included in the appropriate directory for reproducibility and deployment.

Working Video 📷

Streamlit.-.Google.Chrome.2025-07-29.21-33-16.mp4

###Model Evaluation
Classification Report:
precision recall f1-score support

Not Spam       0.99      0.96      0.97       975
    Spam       0.96      0.99      0.97       955

accuracy                           0.97      1930

macro avg 0.98 0.97 0.97 1930
weighted avg 0.98 0.97 0.97 1930

Note to reviewers 📄

Please do check out the changes I have made, and please tell if there is any scope of Improvements

… interface with color highlighting for predictions
@github-actions
Copy link

Thank you for submitting your pull request! We'll review it as soon as possible. For further communication, join our discord server https://discord.gg/tSqtvHUJzE.

Copy link
Collaborator

@Avdhesh-Varshney Avdhesh-Varshney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move your file to models/ChatBot folder. Add need a video which display your code is running in Jarvis. (Means sidebar is verifying it)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove this

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove all comments & inline css styling. Use only streamlit elements.

For model files like pickle or joblib, you can checkout how movieReccommendationModel is setup.
https://github.com/Code-A2Z/jarvis/blob/main/src/apps/pages/models/Recommendation/movieRecommendationModel.py

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert changes from this file

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So remove this file

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bro you need to setup your training notebook file on kaggle. And fetch and download the output model file over here as done in movie model

Connect me on discord, if you stuck in somewhere 👍

@Avdhesh-Varshney
Copy link
Collaborator

Could you plz raise a cleaned & new PR?
And don't forget to create your own branch apart from main.

Never commit directly to main branch!

@Avdhesh-Varshney Avdhesh-Varshney added the wontfix ❌ This will not be worked on label Aug 5, 2025
@007-SARANG
Copy link
Author

I'll send a PR today itself, but why did you close the issue? @Avdhesh-Varshney

@Avdhesh-Varshney
Copy link
Collaborator

Major Reason:

Minor

  • You can review your own pr, you have committed 45 files instead i need only 1 file (which will be automatically linked with jarvis, if keeping at right place by reading all the guidelines)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wontfix ❌ This will not be worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

📃: Text Classification for Spam Detection

2 participants