How arugalladeepika-sys/email-spam-classifier-main works
This is a Flask spam-classification web app. Users submit message text from the classification page; Flask preprocesses it, vectorizes it, runs the model, and renders a result. The same backend handles registration, login, and sessions using MySQL. The README also describes dashboard history and customizable filter settings, but those details are not shown in the sampled source, so their implementation links are left unverified.
Main entry points: app.py Flask routes · index.html Classification page · index.js Form interaction · signup.html Signup page
Components 15
Web interface
- Classification page
templates/index.html - Form interaction
static/index.js - Flask routes
app.py - Result view
templates/result.html - Signup page
templates/signup.html - Signin page
templates/signin.html - Dashboard and history
templates/index.html - Filter settings
templates
Classification
- Text preprocessing
app.py - TF-IDF vectorizer
vectorizer.pkl - Spam classifier
model.pkl
Accounts
- Registration
app.py - Login and session
app.py
Data and models
- MySQL database
Other components
- User
Connections 15
- User → Classification page: uses
README.md - Classification page → Form interaction: submits form
static/index.js - Form interaction → Flask routes: POST /predict
static/index.js - Flask routes → Text preprocessing: preprocesses
app.py - Flask routes → TF-IDF vectorizer: transforms text
app.py - Flask routes → Spam classifier: predicts with
app.py - Flask routes → Result view: renders result
app.py - User → Signup page: registers
README.md - Signup page → Registration: submits details
- Registration → MySQL database: inserts user
app.py - User → Signin page: signs in
README.md - Signin page → Login and session: submits credentials
- Login and session → MySQL database: checks credentials
app.py - User → Dashboard and history: views dashboard
README.md - Dashboard and history → Filter settings: configures filters