Hacktoberfest Hack Day Chandigarh 2026
Hacktoberfest Hack Day Chandigarh 2026 is a 7-hour open-source AI hackathon organized by IEEE SSIT CUSB in collaboration with IEEE Computer Society CUSB. Build innovative AI-powered solutions, contribute to open source, and turn your ideas into real-world impact.
Gmail Spam Detection
About the project
Gmail Spam Detection with Gemma 4
Problem: Spam and phishing emails are easy to miss, and most spam filters just show a label without telling you why an email is risky.
What it does: A Flask web app that connects to Gmail (Google OAuth), scans the latest 10 to 100 emails, and classifies each one as Spam or Ham with a confidence score. On one click, Gemma 4 explains the verdict in plain language: spam, promotional or ham, a one-line reason and up to three red flags.
How Gemma 4 is used: Gemma 4 (gemma4:e2b) runs fully locally through Ollama, so email text is never sent to a cloud AI service. Gemma acts as a second opinion next to a fast scikit-learn classifier (TF-IDF + Logistic Regression, about 97.6% accuracy on roughly 298,000 labelled emails). Long tracking links are shortened to their domain before prompting, so legitimate marketing emails (for example from Adobe) are not flagged as phishing.
Features:
- Gmail scan with Spam / Ham counts and statistics chart
- Manual prediction for any pasted email
- “Explain with Gemma” button on every email
- Search by subject, dark / light theme
Tech: Python, Flask, scikit-learn, NLTK, Gmail API, Ollama, Gemma 4, Bootstrap, Chart.js
Run it: Install Ollama, run ollama pull gemma4:e2b, add your own credentials.json from Google Cloud, train the model with python train_model.py, then start python app.py. Full steps are in the README.
Limitations: Gemma runs on a laptop CPU, so the first load takes a few minutes and each explanation takes about 25 to 40 seconds. Gmail access is limited to Google Cloud test users while the app is in testing mode.
Built with
AI tools
Coded with
Claude CodeGemma 4 26B A4BPrize Categories Entered
- Submitted
Best Use of Gemma 4
- Submitted

Best Open-Source AI Project