Spaces:
Running
Running
phyloforfun
commited on
Commit
·
32e89be
1
Parent(s):
59585dc
file upload gallery
Browse files
app.py
CHANGED
@@ -1219,6 +1219,13 @@ def content_tab_settings():
|
|
1219 |
with col_local_2:
|
1220 |
if st.session_state['input_list_small']:
|
1221 |
st.subheader('Image Gallery')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1222 |
# selected_img = image_select("Uploaded Images Ready for Transcription", st.session_state['input_list_small'], use_container_width=False)
|
1223 |
# st.image(st.session_state['input_list_small'])
|
1224 |
# display_image_gallery()
|
|
|
1219 |
with col_local_2:
|
1220 |
if st.session_state['input_list_small']:
|
1221 |
st.subheader('Image Gallery')
|
1222 |
+
if len(st.session_state['input_list_small']) > 100:
|
1223 |
+
# Only take the first 100 images from the list
|
1224 |
+
images_to_display = st.session_state['input_list_small'][:100]
|
1225 |
+
else:
|
1226 |
+
# If there are less than 100 images, take them all
|
1227 |
+
images_to_display = st.session_state['input_list_small']
|
1228 |
+
st.image(images_to_display)
|
1229 |
# selected_img = image_select("Uploaded Images Ready for Transcription", st.session_state['input_list_small'], use_container_width=False)
|
1230 |
# st.image(st.session_state['input_list_small'])
|
1231 |
# display_image_gallery()
|