Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -46,7 +46,7 @@ def recommend(N, P, K, temperature, humidity, ph, rainfall):
|
|
46 |
features = np.array([[N, P, K, temperature, humidity, ph, rainfall]]).reshape(1,-1)
|
47 |
features = ms.transform(features)
|
48 |
features = ss.transform(features)
|
49 |
-
prediction =
|
50 |
return prediction[0]
|
51 |
|
52 |
def output(N, P, K, temperature, humidity, ph, rainfall):
|
|
|
46 |
features = np.array([[N, P, K, temperature, humidity, ph, rainfall]]).reshape(1,-1)
|
47 |
features = ms.transform(features)
|
48 |
features = ss.transform(features)
|
49 |
+
prediction = model.predict(features)
|
50 |
return prediction[0]
|
51 |
|
52 |
def output(N, P, K, temperature, humidity, ph, rainfall):
|