A production-ready FastAPI application that predicts whether a loan applicant is a Good or Bad credit risk based on structured financial and demographic data. This project demonstrates how to deploy a trained ML model behind a RESTful API interface.
The API takes in customer input via JSON and returns a prediction based on a Decision Tree Classifier trained on credit data. The model is serialized using pickle (tree_Accuracy_based.pkl) and loaded into the app during runtime.
Built with FastAPI β a blazing-fast, modern Python web framework β this API is ideal for deploying ML models in real-world applications.
Pydantic models (bank.py)pickle/docs1 = Good, 0 = Bad).