nishantguvvada commited on
Commit
8518300
·
verified ·
1 Parent(s): 125baa9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- if st.button("Recommend"):
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