Machine Learning based Web Project to give Crop Predictions and Yield Predictions on basis of data supplied by user, and an API to get the results for usage in creation of more apps.
Created during Digital Village Hackathon hosted by Thapar Institute of Engg. Technology Patiala, in 2022.
FORMAT
http://profarm.ml/crop-api/<nitrogen>/<phosphorus>/<potassium>/<temperature>/<humidity>/<soilph>/<rainfall>/
RETURNS
Json Body with two fields
1. crop_name (string)
2. accuracy (float)
-
Copy the
dfhmain
folder andrequirements.txt
file to a new folder. -
Create a Virtual Environment in the folder using -
pip install virtualenv
virtualenv dfhproject
- Enter the Venv
dfhproject\Scripts\activate
- Move to
dfhmain
and install required packages using -
cd dfhmain
pip install -r requirements.txt
- Perform migrations
python manage.py migrate
- Run the Project
python manage.py runserver
Access the project on https://127.0.0.1:8000