Spaces:
Runtime error
Runtime error
abdulsamod
commited on
Commit
•
ac87b69
1
Parent(s):
50b647c
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,10 @@ import pickle
|
|
3 |
import numpy as np
|
4 |
|
5 |
|
6 |
-
|
7 |
|
8 |
def crop_yield(Planted,Size_of_land, Bags, Soil_Type, Type_of_Seed, Color_of_Seeds):
|
9 |
-
prediction =
|
10 |
return prediction
|
11 |
|
12 |
#create input and output objects
|
|
|
3 |
import numpy as np
|
4 |
|
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
|