Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import pickle
|
|
7 |
model = pickle.load('crop_recommendation_model.pkl')
|
8 |
le = pickle.load('label_encoder.pkl')
|
9 |
|
10 |
-
def recommend_crop(nitrogen, phosphorus, potassium, temperature, humidity, ph, rainfall)
|
11 |
X_sample = nitrogen, phosphorus, potassium, temperature, humidity, ph, rainfall
|
12 |
|
13 |
# Predict crop recommendations
|
|
|
7 |
model = pickle.load('crop_recommendation_model.pkl')
|
8 |
le = pickle.load('label_encoder.pkl')
|
9 |
|
10 |
+
def recommend_crop(nitrogen, phosphorus, potassium, temperature, humidity, ph, rainfall):
|
11 |
X_sample = nitrogen, phosphorus, potassium, temperature, humidity, ph, rainfall
|
12 |
|
13 |
# Predict crop recommendations
|