Spaces:
Running
Running
Commit
•
1c57739
1
Parent(s):
7b8df6e
file upload gallery
Browse files
app.py
CHANGED
@@ -1210,7 +1210,7 @@ def content_tab_settings():
|
|
1210 |
file_path = save_uploaded_file(st.session_state['dir_uploaded_images'], uploaded_file)
|
1211 |
img = Image.open(file_path)
|
1212 |
img.thumbnail((120, 120), Image.Resampling.LANCZOS)
|
1213 |
-
file_path_small = save_uploaded_file(st.session_state['dir_uploaded_images_small'], uploaded_file
|
1214 |
|
1215 |
st.session_state['input_list'].append(file_path)
|
1216 |
st.session_state['input_list_small'].append(file_path_small)
|
|
|
1210 |
file_path = save_uploaded_file(st.session_state['dir_uploaded_images'], uploaded_file)
|
1211 |
img = Image.open(file_path)
|
1212 |
img.thumbnail((120, 120), 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)
|
1216 |
st.session_state['input_list_small'].append(file_path_small)
|