Skip to content

Repository files navigation

Flutter Iris Prediction App

The Flutter Iris Prediction App is a mobile application built with Flutter for the frontend and Flask for the backend. This app predicts the species of an iris flower based on input measurements using a machine learning model hosted on a Flask server.

Usage

Flutter App Setup

  1. Clone the repository for the Flutter app:
git clone https://github.com/deep200315/Iris-Prediction.git
  1. Navigate to the project directory:
cd flutter-iris-prediction-app
  1. Install Flutter dependencies:
flutter pub get
  1. Run the Flutter app:
flutter Run

Flask Backend Setup

  1. Clone the repository for the Flask backend:
git clone https://github.com/deep200315/flask-iris-prediction-backend.git
  1. Navigate to the Flask project directory:
cd flask-iris-prediction-backend
  1. Create a virtual environment (optional but recommended):
python -m venv venv
source venv/bin/activate   # For Unix/Linux
# or
venv\Scripts\activate       # For Windows
  1. Install Flask and required Python packages:
pip install -r requirements.txt
  1. Run the Flask server:
python iris_api.py

Using

1.Ensure both the Flutter app and Flask backend are running.

2.Open the Flutter app on an emulator or physical device.

3.Enter the values for sepal length, sepal width, petal length, and petal width into the input fields.

4.Press the "Predict" button to send the input measurements to the Flask backend.

5.View the predicted iris species returned by the backend on the Flutter app interface.

Screenshots

Screenshot 2024-04-12 204046

Screenshot 2024-04-12 204131

Screenshot 2024-04-12 204152

Project Structure

Iris-Prediction: Contains the Flutter mobile app frontend. flask-iris-prediction-backend: Contains the Flask backend server.

Dependencies

Flutter App

Flutter: Framework for building native applications using Dart. http: Dart package for making HTTP requests to the backend.

Flask Backend

Flask: Web framework used for building the backend server. scikit-learn: Library for machine learning tasks in Python.

Acknowledgments

This app was inspired by the classic Iris dataset and demonstrates a full-stack application using Flutter and Flask.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages