Spaces:
Runtime error
Runtime error
abdulsamod
commited on
Commit
•
50b647c
1
Parent(s):
5092f01
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ import numpy as np
|
|
5 |
|
6 |
model = pickle.load(open(model.pkl, 'rb'))
|
7 |
|
8 |
-
def crop_yield(Planted,
|
9 |
-
prediction = model.predict([[Planted,
|
10 |
return prediction
|
11 |
|
12 |
#create input and output objects
|
|
|
5 |
|
6 |
model = pickle.load(open(model.pkl, 'rb'))
|
7 |
|
8 |
+
def crop_yield(Planted,Size_of_land, Bags, Soil_Type, Type_of_Seed, Color_of_Seeds):
|
9 |
+
prediction = model.predict([[Planted,Size_of_land, Bags, Soil_Type, Type_of_Seed,Color_of_Seeds]])
|
10 |
return prediction
|
11 |
|
12 |
#create input and output objects
|