Spaces:
Runtime error
Runtime error
abdulsamod
commited on
Commit
•
8a2be2a
1
Parent(s):
4e52a61
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,8 @@ def crop_yield(Planted,Size_of_land, Bags, Soil_Type, Type_of_Seed, Color_of_See
|
|
11 |
prediction = model_.predict([[Planted,Size_of_land, Bags, Soil_Type, Type_of_Seed,Color_of_Seeds]])
|
12 |
return prediction
|
13 |
|
|
|
|
|
14 |
#create input and output objects
|
15 |
#input object1
|
16 |
input1 = gr.inputs.Number(label="Planted")
|
@@ -19,14 +21,11 @@ input2 = gr.inputs.Number(label="Size of land (Hectare)")
|
|
19 |
#input object3
|
20 |
input3 = gr.inputs.Number(label="Number of Bags")
|
21 |
#input object 3
|
22 |
-
input4 = gr.inputs.Number(label="
|
23 |
-
placeholder= "Input: 0 for Loamy Soil and 1 for others")
|
24 |
#input object 3
|
25 |
-
input5 = gr.inputs.Number(label="Type of Seed"
|
26 |
-
placeholder= "Input: 0 for White Seed and 1 for other")
|
27 |
#input object 3
|
28 |
-
input6 = gr.inputs.Number(label="Color of Seeds"
|
29 |
-
placeholder= "Input: 0 for White Seed and 1 for Yellow Seed")
|
30 |
|
31 |
|
32 |
#output object
|
|
|
11 |
prediction = model_.predict([[Planted,Size_of_land, Bags, Soil_Type, Type_of_Seed,Color_of_Seeds]])
|
12 |
return prediction
|
13 |
|
14 |
+
label1= "Soil Type\nInput: 0 for Loamy Soil and 1 for others"
|
15 |
+
|
16 |
#create input and output objects
|
17 |
#input object1
|
18 |
input1 = gr.inputs.Number(label="Planted")
|
|
|
21 |
#input object3
|
22 |
input3 = gr.inputs.Number(label="Number of Bags")
|
23 |
#input object 3
|
24 |
+
input4 = gr.inputs.Number(label=label1")
|
|
|
25 |
#input object 3
|
26 |
+
input5 = gr.inputs.Number(label="Type of Seed\nInput: 0 for White Seed and 1 for other")
|
|
|
27 |
#input object 3
|
28 |
+
input6 = gr.inputs.Number(label="Color of Seeds\nInput: 0 for White Seed and 1 for Yellow Seed")
|
|
|
29 |
|
30 |
|
31 |
#output object
|