Update app.py
Browse files
app.py
CHANGED
|
@@ -354,25 +354,7 @@ with tab3:
|
|
| 354 |
|
| 355 |
col1, col2, col3 = st.columns([1, 3, 1])
|
| 356 |
|
| 357 |
-
with col2:
|
| 358 |
-
# Initialize or update the image index
|
| 359 |
-
image_index = st.select_slider(
|
| 360 |
-
"Choose an image",
|
| 361 |
-
options=list(range(len(st.session_state['image_paths']))),
|
| 362 |
-
format_func=lambda x: f"Image {x + 1}"
|
| 363 |
-
)
|
| 364 |
-
|
| 365 |
-
# Display the selected image
|
| 366 |
-
st.image(st.session_state['image_paths'][image_index])
|
| 367 |
-
|
| 368 |
-
# Button for actions related to the selected image
|
| 369 |
-
if st.button("Details", key=f"details_{image_index}"):
|
| 370 |
-
st.write(f"You clicked on image {image_index + 1}")
|
| 371 |
-
|
| 372 |
|
| 373 |
-
|
| 374 |
-
|
| 375 |
-
"""
|
| 376 |
with col2:
|
| 377 |
# Display the selected image
|
| 378 |
image_width = 400
|
|
@@ -389,4 +371,3 @@ with tab3:
|
|
| 389 |
st.write(f"You clicked on image {image_index + 1}")
|
| 390 |
# Add more actions for the click event here
|
| 391 |
|
| 392 |
-
"""
|
|
|
|
| 354 |
|
| 355 |
col1, col2, col3 = st.columns([1, 3, 1])
|
| 356 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 357 |
|
|
|
|
|
|
|
|
|
|
| 358 |
with col2:
|
| 359 |
# Display the selected image
|
| 360 |
image_width = 400
|
|
|
|
| 371 |
st.write(f"You clicked on image {image_index + 1}")
|
| 372 |
# Add more actions for the click event here
|
| 373 |
|
|
|