Loan AI App is a Flutter-based mobile application that leverages machine learning to predict whether a customer qualifies for a loan or not. The app uses a Flask-based API to interact with a pre-trained ML model, ensuring seamless integration between the front-end interface and back-end prediction services.
- Intuitive User Interface: Built with Flutter, providing a smooth and responsive user experience.
- AI-Powered Predictions: Utilizes a machine learning model to assess loan eligibility.
- API Integration: Flask is used to host the ML model, which the app communicates with via RESTful API.
- Cross-Platform Compatibility: Runs on both Android and iOS devices.
- Flutter (Dart)
- Flask (Python)
- Scikit-learn (or other ML libraries used for the model)
- RESTful API endpoints
- Flutter SDK installed
- Python (3.8 or higher)
- Pip package manager
- Virtual environment for Python (optional but recommended)
git clone https://github.com/amoako419/loan-ai-app.git
cd loan-ai-app
-
Navigate to the
backend
directory:cd backend
-
Create and activate a virtual environment (optional):
python3 -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Run the Flask server:
python app.py
The API will be available at
http://127.0.0.1:5000/
.
-
Navigate back to the project root:
cd ../
-
Install Flutter dependencies:
flutter pub get
-
Run the app:
flutter run
http://127.0.0.1:5000/
- Predict Loan Eligibility
- URL:
/predict
- Method: POST
- Request Body: JSON object containing customer details (e.g., income, credit score, etc.)
- Response: JSON object with prediction result (e.g.,
eligible: true/false
)
- URL:
- User enters loan application details into the Flutter app.
- The app sends the data to the Flask API.
- Flask API processes the data using the ML model.
- Prediction results are sent back to the app and displayed to the user.
- Add more advanced ML models for better accuracy.
- Implement secure authentication for API access.
- Enhance UI/UX with additional features.
- Deploy the Flask API to a cloud service for scalability.
- Fork the repository.
- Create a feature branch (
git checkout -b feature-name
). - Commit your changes (
git commit -m 'Add feature'
). - Push to the branch (
git push origin feature-name
). - Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for more details.