How arnavd45/diabetes-prediction-app-repo works
This is a small FastAPI diabetes-prediction service. A client submits eight clinical fields to /predict; the API passes them to the prediction function, which builds a pandas row and uses the loaded trained model to produce a prediction. The API returns that value to the client. Model loading is visible in the sampled source; the required environment configuration and logging destinations are not present in the file tree.
Main entry points: main.py Prediction API · prediction.py Prediction function · diabetes_pipeline_trained.joblib Trained model
Components 4
Other components
- API client
- Prediction API
main.py - Prediction function
prediction.py - Trained model
model_dir/diabetes_pipeline_trained.joblib
Connections 4
- API client → Prediction API: POST /predict
main.py - Prediction API → Prediction function: calls predict
main.py - Prediction function → Trained model: loads model
prediction.py - Prediction API → API client: returns prediction
main.py