How saipawar0272/crop-recommendation-app works
This is a Flask crop-recommendation application. A farmer submits environmental and soil values through the web interface; the Flask prediction route converts them to numeric features, calls the loaded classifier, and renders the predicted crop. A separate training script fits the classifier and saves the artifact used by the web app. The README also describes crop-input guidance and real-time weather integration, but those implementations were not sampled; those branches are therefore shown as unverified/documented capabilities.
Main entry points: app.py Flask routes · index.html Recommendation form · model.pkl Crop classifier · model.py Model training
Components 8
Web application
- Flask routes
app.py - Recommendation form
templates/index.html - Page styling
static/styles.css
Crop prediction
- Crop classifier
model.pkl - Model training
model.py
Recommendation capabilities
- Crop details
templates/Crop_recommendation.csv - Weather data
Other components
- Farmer
Connections 10
- Farmer → Recommendation form: enters parameters
README.md - Recommendation form → Flask routes: submits form
README.md - Flask routes → Recommendation form: renders page
app.py - Flask routes → Crop classifier: loads model
app.py - Flask routes → Crop classifier: predicts crop
app.py - Flask routes → Recommendation form: renders result
app.py - Model training → Crop classifier: saves model
model.py - Flask routes → Crop details: provides details
README.md - Weather data → Flask routes: supplies conditions
README.md - Recommendation form → Page styling: uses styling