How ponrathi07/diabeties_prediction works
This is a small Flask diabetes-prediction web app. A user provides medical measurements, the Flask prediction route applies a Logistic Regression model, and the result is rendered back in the page. The runtime trains its own model from the CSV; separately, model.py trains on a split and writes model.pkl, which app.py does not load. The README and app.py support the main workflow, but the page markup was not sampled, so its submission wiring is uncertain.
Main entry points: app.py Flask routes · index.html Prediction page · model.py Training script · diabetes.csv Diabetes data
Components 8
Web interface
- Prediction page
index.html
Prediction runtime
- Flask routes
app.py - Diabetes data
diabetes.csv - Logistic Regression
app.py - Prediction result
app.py
Model preparation
- Training script
model.py - Saved model
model.pkl
Other components
- User
Connections 9
- User → Prediction page: enters measurements
README.md - Prediction page → Flask routes: submits measurements
- Flask routes → Prediction page: renders page
app.py - Flask routes → Diabetes data: loads data
app.py - Flask routes → Logistic Regression: trains and predicts
app.py - Flask routes → Prediction result: formats outcome
app.py - Flask routes → Prediction page: renders outcome
app.py - Training script → Diabetes data: loads data
model.py - Training script → Saved model: writes model
model.py