How shekhar-commit/soil_type_prediction works
This Flask application accepts soil and weather measurements, encodes soil texture, predicts a soil category, decodes that prediction, and displays the result. The user-facing form and result pages are separate templates; prediction logic and model loading are in app.py. The CSV dataset is present in the tree but is not referenced by the sampled application code, so it is not shown as part of the runtime workflow.
Main entry points: app.py Flask app · index.html Soil input form · result.html Prediction result page · texture_encoder.pkl Texture encoder
Components 7
Web interface
- Soil input form
templates/index.html - Prediction result page
templates/result.html
Prediction runtime
- Flask app
app.py - Texture encoder
texture_encoder.pkl - Soil prediction model
soil_prediction_model.pkl - Soil label encoder
soil_encoder.pkl
Other components
- User
Connections 6
- User → Flask app: submits measurements
app.py - Flask app → Soil input form: renders form
app.py - Flask app → Texture encoder: encodes texture
app.py - Flask app → Soil prediction model: predicts soil
app.py - Flask app → Soil label encoder: decodes label
app.py - Flask app → Prediction result page: renders result
app.py