Update app.py
Browse files
app.py
CHANGED
|
@@ -355,15 +355,15 @@ with tab3:
|
|
| 355 |
col1, col2, col3 = st.columns([1, 3, 1])
|
| 356 |
|
| 357 |
with col2:
|
|
|
|
|
|
|
|
|
|
| 358 |
image_index = st.select_slider(
|
| 359 |
"Choose an image",
|
| 360 |
options=list(range(len(st.session_state['image_paths']))),
|
| 361 |
format_func=lambda x: f"Image {x + 1}"
|
| 362 |
)
|
| 363 |
|
| 364 |
-
# Display the selected image
|
| 365 |
-
image_width = 400
|
| 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}"):
|
|
|
|
| 355 |
col1, col2, col3 = st.columns([1, 3, 1])
|
| 356 |
|
| 357 |
with col2:
|
| 358 |
+
# Display the selected image
|
| 359 |
+
image_width = 400
|
| 360 |
+
st.image(st.session_state['image_paths'][image_index])
|
| 361 |
image_index = st.select_slider(
|
| 362 |
"Choose an image",
|
| 363 |
options=list(range(len(st.session_state['image_paths']))),
|
| 364 |
format_func=lambda x: f"Image {x + 1}"
|
| 365 |
)
|
| 366 |
|
|
|
|
|
|
|
|
|
|
| 367 |
|
| 368 |
# Button for actions related to the selected image
|
| 369 |
if st.button("Details", key=f"details_{image_index}"):
|