Spaces:
Runtime error
Runtime error
Commit
·
931d86a
1
Parent(s):
7fe3476
update
Browse files
app.py
CHANGED
@@ -209,15 +209,11 @@ def process_image(image_path, flag_lower, flag_upper, plant_lower, plant_upper,
|
|
209 |
st.session_state.quad_index = (st.session_state.quad_index - 1) % len(valid_permutations)
|
210 |
centroids = update_displayed_quadrilateral(st.session_state.quad_index)
|
211 |
|
212 |
-
if st.button('Previous'):
|
213 |
-
st.session_state.quad_index = (st.session_state.quad_index + 1) % len(valid_permutations)
|
214 |
-
centroids = update_displayed_quadrilateral(st.session_state.quad_index)
|
215 |
-
|
216 |
with btn_next:
|
217 |
# Button to go to the next quadrilateral
|
218 |
if st.button('Next'):
|
219 |
-
|
220 |
-
centroids = update_displayed_quadrilateral(
|
221 |
|
222 |
with loc:
|
223 |
if st.button('Keep Plot Bounds'):
|
|
|
209 |
st.session_state.quad_index = (st.session_state.quad_index - 1) % len(valid_permutations)
|
210 |
centroids = update_displayed_quadrilateral(st.session_state.quad_index)
|
211 |
|
|
|
|
|
|
|
|
|
212 |
with btn_next:
|
213 |
# Button to go to the next quadrilateral
|
214 |
if st.button('Next'):
|
215 |
+
st.session_state.quad_index = (st.session_state.quad_index + 1) % len(valid_permutations)
|
216 |
+
centroids = update_displayed_quadrilateral(st.session_state.quad_index)
|
217 |
|
218 |
with loc:
|
219 |
if st.button('Keep Plot Bounds'):
|