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.
These instructions will help you set up the Flask application on your local system for development and testing purposes.
Before running the application, ensure that you have the following installed:
- Python 3.x
- TensorFlow
- Keras
- OpenCV
- Flask
- 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.
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
The Flask application can be deployed on various platforms.
This project is licensed under the MIT License
.