How bashutosh017/credit-card-approval-model-live works
This is a Flask-based credit-approval assessment app. Applicants enter financial details in a browser form; the server validates them, scores them with a packaged model, and returns an approval estimate. It also serves informational pages and records request outcomes in logs. The tree and excerpts establish the route, validation, scoring, and audit flow; template internals and other frontend assets were not sampled.
Main entry points: app.py Prediction endpoint · app.js Assessment form · templates Site pages · Lightgbm_credit2.pkl Credit model
Components 11
Web experience
- Site pages
templates - Assessment form
static/js/app.js
Assessment service
- Page routes
app.py - Prediction endpoint
app.py - Input validation
app.py
Model and audit
- Model scoring
app.py - Credit model
Lightgbm_credit2.pkl - Feature schema
Model_feature2.pkl - Request logging
app.py - Log files
logs
Other components
- Applicant
Connections 9
- Applicant → Assessment form: enters details
- Assessment form → Prediction endpoint: posts JSON
static/js/app.js - Page routes → Site pages: renders pages
app.py - Prediction endpoint → Input validation: validates input
app.py - Prediction endpoint → Model scoring: runs scoring
app.py - Model scoring → Credit model: predicts probability
app.py - Model scoring → Feature schema: selects columns
app.py - Prediction endpoint → Request logging: records outcome
app.py - Request logging → Log files: writes records
app.py