How nathesh6/develop-an-ai-system-to-identify-and-block-phishing-emails works
This is a Flask phishing-email classifier. The user opens the home page, submits email text at the scanner, and receives a phishing-or-safe result. Separately, the training script reads spam.csv, creates TF-IDF features, trains XGBoost, and saves a model/vectorizer bundle; app.py loads that bundle for inference. The README describes additional algorithms, metadata features, evaluation, and email-system deployment, but the supplied source does not show their implementation, so they are not represented as runtime components. The model bundle is referenced by code but is absent from the file tree.
Main entry points: app.py Flask routes · train_model.py Model training · home.html Home page · index.html Scanner page
Components 7
Web scanning
- Flask routes
app.py - Home page
templates/home.html - Scanner page
templates/index.html - Email classification
app.py
Model training
- Model training
train_model.py - Training dataset
spam.csv
Other components
- Email user
Connections 6
- Email user → Flask routes: submits email
README.md - Flask routes → Home page: renders
app.py - Flask routes → Scanner page: renders
app.py - Flask routes → Email classification: routes scan
app.py - Email classification → Email user: returns result
app.py - Model training → Training dataset: reads
train_model.py