How kamalhiiny/multi_disease_predictor works
Medibuddy is a Flask disease-prediction web app. Users open predictor pages, submit clinical measurements or an image, and receive a rendered prediction or an input-error page. The code separates tabular model inference from image preparation and image-model inference. The README confirms the home page and several predictor/result screens; source excerpts show the request handling and model calls. The graph omits unverified template links and image-storage details beyond those visible in app.py.
Main entry points: app.py Request routes · home.html Home page · diabetes.html Diabetes form · breast_cancer.html Cancer form
Components 22
Web pages
- Request routes
app.py - Home page
templates/home.html - Diabetes form
templates/diabetes.html - Cancer form
templates/breast_cancer.html - Heart form
templates/heart.html - Kidney form
templates/kidney.html - Liver form
templates/liver.html - Prediction result
templates/predict.html - Malaria form
templates/malaria.html - Pneumonia form
templates/pneumonia.html - Malaria result
templates/malaria_predict.html - Pneumonia result
templates/pneumonia_predict.html
Clinical predictions
- Tabular inference
app.py - Diabetes model
models/diabetes.pkl - Cancer model
models/breast_cancer.pkl - Heart model
models/heart.pkl - Kidney model
models/kidney.pkl - Liver model
models/liver.pkl
Image predictions
- Image preparation
app.py - Malaria model
models/malaria.h5 - Pneumonia model
models/pneumonia.h5
Other components
- User
Connections 21
- User → Request routes: sends request
app.py - Request routes → Home page: renders
app.py - Request routes → Diabetes form: renders
app.py - Request routes → Cancer form: renders
app.py - Request routes → Heart form: renders
app.py - Request routes → Kidney form: renders
app.py - Request routes → Liver form: renders
app.py - Request routes → Tabular inference: calls
app.py - Tabular inference → Diabetes model: loads and predicts
app.py - Tabular inference → Cancer model: loads and predicts
app.py - Tabular inference → Heart model: loads and predicts
app.py - Tabular inference → Kidney model: loads and predicts
app.py - Tabular inference → Liver model: loads and predicts
app.py - Request routes → Prediction result: renders
app.py - Request routes → Malaria form: renders
app.py - Request routes → Pneumonia form: renders
app.py - Request routes → Image preparation: prepares image
app.py - Image preparation → Malaria model: loads and predicts
app.py - Image preparation → Pneumonia model: loads and predicts
app.py - Request routes → Malaria result: renders
app.py - Request routes → Pneumonia result: renders
app.py