Spaces:
Running
Running
Commit
·
59585dc
1
Parent(s):
1c57739
file upload gallery
Browse files
app.py
CHANGED
@@ -1209,7 +1209,7 @@ def content_tab_settings():
|
|
1209 |
for uploaded_file in uploaded_files:
|
1210 |
file_path = save_uploaded_file(st.session_state['dir_uploaded_images'], uploaded_file)
|
1211 |
img = Image.open(file_path)
|
1212 |
-
img.thumbnail((
|
1213 |
file_path_small = save_uploaded_file(st.session_state['dir_uploaded_images_small'], uploaded_file, img)
|
1214 |
|
1215 |
st.session_state['input_list'].append(file_path)
|
@@ -1219,8 +1219,8 @@ 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['
|
1224 |
# display_image_gallery()
|
1225 |
# st.button("Clear Staged Images",on_click=delete_directory, args=[st.session_state['dir_uploaded_images']])
|
1226 |
|
|
|
1209 |
for uploaded_file in uploaded_files:
|
1210 |
file_path = save_uploaded_file(st.session_state['dir_uploaded_images'], uploaded_file)
|
1211 |
img = Image.open(file_path)
|
1212 |
+
img.thumbnail((64, 64), Image.Resampling.LANCZOS)
|
1213 |
file_path_small = save_uploaded_file(st.session_state['dir_uploaded_images_small'], uploaded_file, img)
|
1214 |
|
1215 |
st.session_state['input_list'].append(file_path)
|
|
|
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()
|
1225 |
# st.button("Clear Staged Images",on_click=delete_directory, args=[st.session_state['dir_uploaded_images']])
|
1226 |
|