Skip to content

DeveloperMK07/CROP_PRICE_PREDICTION

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Overview

This project is a crop price prediction system that uses machine learning models to predict the price of various crops based on input parameters such as crop type, city, season, and temperature. The system includes a trained model, a Flask API for predictions, and a simple HTML front-end for user interaction.

Project Structure

1.app.py: The Flask application that serves the API and static files.
2.index.html: The HTML file for the user interface, placed in the static directory.
3.xgb_model.pkl: The trained XGBoost model saved as a pickle file.
4.label_encoders.pkl: The label encoders for categorical features saved as a pickle file.
5.scaler.pkl: The scaler for feature scaling saved as a pickle file.

Usage


Access the Application

Open your web browser and navigate to http://127.0.0.1:5000. You should see the HTML form where you can input the crop type, city, season, and temperature.
Submit the Form

Enter the required information and submit the form. The predicted price will be displayed based on the input parameters.

License


This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments


XGBoost
Flask
scikit-learn

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published