Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -60,8 +60,7 @@ def output(N, P, K, temperature, humidity, ph, rainfall):
|
|
60 |
image = Image.open('./crop_details.jpg')
|
61 |
st.image(image)
|
62 |
|
63 |
-
|
64 |
-
output(n_value, p_value, k_value, temperature, humidity, ph_value, rainfall)
|
65 |
|
66 |
with st.sidebar:
|
67 |
image = Image.open('./sidebar_image.jpg')
|
@@ -93,5 +92,9 @@ with st.sidebar:
|
|
93 |
rainfall = st.slider('Rainfall :', 10.0, 300.0, 40.0)
|
94 |
|
95 |
|
|
|
|
|
|
|
|
|
96 |
|
97 |
|
|
|
60 |
image = Image.open('./crop_details.jpg')
|
61 |
st.image(image)
|
62 |
|
63 |
+
|
|
|
64 |
|
65 |
with st.sidebar:
|
66 |
image = Image.open('./sidebar_image.jpg')
|
|
|
92 |
rainfall = st.slider('Rainfall :', 10.0, 300.0, 40.0)
|
93 |
|
94 |
|
95 |
+
with st.container():
|
96 |
+
if st.button("Recommend"):
|
97 |
+
output(n_value, p_value, k_value, temperature, humidity, ph_value, rainfall)
|
98 |
+
|
99 |
|
100 |
|