A Flask-based web application for predicting loan approval using a machine learning model.
├── loan_prediction_api │ ├── templates │ │ ├── index.html │ │ ├── predict.html │ ├── static │ ├── app.py │ ├── model.pkl │ └── requirements.txt ├── README.md └── .gitignore
- Python
- Flask
- Scikit-learn
- HTML + CSS
- Bootstrap (Optional)
- Clone the repository
git clone https://github.com/allwin10/loan-prediction-web-app.git
cd loan_prediction_api- Create a virtual environment
python -m venv venv
source venv/bin/activate # For MacOS/Linux
venv\Scripts\activate # For Windows- Install dependencies
pip install -r requirements.txt- Run the app
python app.py- Open your browser and go to:
👉http://127.0.0.1:5000
- Model:
RandomForestClassifier - Input Features: 14
- Prediction: Approved or Rejected
✅ Predicts loan approval based on user inputs
✅ Clean and responsive UI
✅ One-hot encoding for categorical data
✅ Flask-based backend
- Fork the repository
- Create a new branch (
git checkout -b feature/your-feature) - Commit your changes (
git commit -m 'Add new feature') - Push to the branch (
git push origin feature/your-feature) - Open a Pull Request

