How sandeep1098-pil/3d-printing-model works
This is a Flask web app for authenticated 3D-printing filament prediction. Users register or sign in, submit print parameters, and receive a PLA/ABS result; protected home and about pages and logout support the surrounding experience. The sampled app.py shows MySQL access, cookie-based JWT checks, feature scaling, model inference, and result rendering. This differs from the README’s SQLite description: the sampled implementation configures MySQL. Training and deployment files are excluded; unsampled template behavior is represented only where documented.
Main entry points: app.py Flask routes · auth.html Login/register view · home.html Prediction form · result.html Result view
Components 17
Web experience
- Flask routes
flask/app.py - Landing view
flask/templates/index.html - Login/register view
flask/templates/auth.html - Auth interactions
flask/static/js/auth.js - Prediction form
flask/templates/home.html - About view
flask/templates/about.html - Result view
flask/templates/result.html
Identity
- Authentication handler
flask/app.py - JWT access guard
flask/app.py - Token creation and validation
flask/app.py - User credential access
flask/app.py - MySQL user database
Prediction
- Feature preparation
flask/app.py - Feature scaler
flask/Min_max_scaler.pkl - Material model
flask/3d_printer.pkl - Material mapping
flask/app.py
Other components
- Visitor
Connections 19
- Visitor → Flask routes: requests pages
README.md - Flask routes → Authentication handler: handles auth
flask/app.py - Authentication handler → User credential access: checks or creates
flask/app.py - User credential access → MySQL user database: reads and writes
flask/app.py - Authentication handler → Token creation and validation: issues token
flask/app.py - JWT access guard → Token creation and validation: validates token
flask/app.py - Flask routes → JWT access guard: protects routes
flask/app.py - Flask routes → Landing view: renders
flask/app.py - Flask routes → Login/register view: renders
flask/app.py - Flask routes → Prediction form: renders
flask/app.py - Flask routes → About view: renders
flask/app.py - Flask routes → Result view: renders
flask/app.py - Login/register view → Auth interactions: uses interactions
- Visitor → Prediction form: submits parameters
README.md - Flask routes → Feature preparation: parses parameters
flask/app.py - Feature preparation → Feature scaler: transforms features
flask/app.py - Feature preparation → Material model: predicts material
flask/app.py - Feature preparation → Material mapping: maps prediction
flask/app.py - Flask routes → Result view: returns result
flask/app.py