Skip to content

This repository contains the Flask application that serves as the API endpoint for MedAyu.

Notifications You must be signed in to change notification settings

shoaib749/MedAyu-Ayurvedic-Classification-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

-----------------------------------------------------

➤ MedAyu - Ayurvedic Plant Identification Android App

logoicon10 (3)

MedAyu is an Android application that utilizes machine learning to predict Ayurvedic plants by scanning their leaves. This repository contains the Flask application that serves as the API endpoint for MedAyu.

-----------------------------------------------------

➤ Getting Started

These instructions will help you set up the Flask application on your local system for development and testing purposes.

Prerequisites

Before running the application, ensure that you have the following installed:

  • Python 3.x
  • TensorFlow
  • Keras
  • OpenCV
  • Flask

Installation

  1. Clone the repository:
git clone https://github.com/your-username/medayu-flask.git

Change to the project directory:

cd medayu-flask

Install the dependencies:

pip install -r requirements.txt

Run the Flask application:

python app.py

The application should now be running locally on http://localhost:5000. -----------------------------------------------------

➤ API Endpoints

The Flask application provides the following API endpoint:

Endpoint: https://flask-production-0d46.up.railway.app/class

  • Method: POST
  • Request Body:
    • test_url: URL of the test image to be sent for prediction
  • Response Body:
    • PlantName: Name of the predicted plant as a string

-----------------------------------------------------

➤ Deployments

The Flask application can be deployed on various platforms. -----------------------------------------------------

➤ License

This project is licensed under the MIT License.

About

This repository contains the Flask application that serves as the API endpoint for MedAyu.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published