How sakethlingerker/minor-project works
This is a small Flask crop-prediction app. A user submits seven soil and environmental values; the Flask handler builds a feature array, asks the loaded model for a prediction, maps its class to a crop name, and renders a result page. The README describes yield forecasting, but the shown runtime predicts a crop class. The notebook and CSV are present, but their roles and connections were not inspected; the shown source also does not establish that the HTML files are available in Flask’s expected templates directory.
Main entry points: app.py Flask app · index.html Input page · result.html Result page · model.pkl Crop classifier
Components 7
Web interaction
- Flask app
app.py - Input page
index.html - Result page
result.html
Crop inference
- Crop classifier
model.pkl
Model and data assets
- Forecasting notebook
AI-Powered Forecasting.ipynb - Crop dataset
Crop_recommendation.csv
Other components
- User
Connections 4
- User → Flask app: submits inputs
app.py - Flask app → Input page: renders page
app.py - Flask app → Crop classifier: predicts class
app.py - Flask app → Result page: renders result
app.py