How danishahmed600/khetkhabri works
This is a Streamlit prototype for recommending a crop and estimating its price from month, soil type, temperature, and rainfall. Its workflow loads the supplied spreadsheet, encodes fields and trains crop and price models, then accepts user inputs and displays predictions alongside evaluation metrics. The only source file shown contains the full runtime, so component boundaries here describe responsibilities within that file; no other implementation or integrations are evidenced.
Main entry points: main.py Train and evaluate · Advanced_Crop_Prediction_and_Analysis_2024.xlsx Crop dataset
Components 9
Input data
- Crop dataset
Advanced_Crop_Prediction_and_Analysis_2024.xlsx
Prediction pipeline
- Load and encode
main.py - Train and evaluate
main.py - Crop classifier
main.py - Price regressor
main.py - Prediction function
main.py
Streamlit interface
- Streamlit interface
main.py - Model metrics
main.py
Other components
- Farmer
Connections 11
- Crop dataset → Load and encode: provides data
main.py - Load and encode → Train and evaluate: prepares data
main.py - Train and evaluate → Crop classifier: fits and scores
main.py - Train and evaluate → Price regressor: fits and scores
main.py - Train and evaluate → Model metrics: computes metrics
main.py - Farmer → Streamlit interface: enters inputs
main.py - Streamlit interface → Prediction function: calls prediction
main.py - Prediction function → Crop classifier: predicts crop
main.py - Prediction function → Price regressor: predicts price
main.py - Prediction function → Streamlit interface: returns results
main.py - Model metrics → Streamlit interface: displays metrics
main.py