Daniel Verdu commited on
Commit
cc9c1ce
1 Parent(s): 13d150c

fixed extra iteration while uploading new files

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -261,7 +261,7 @@ if colorizer is not None:
261
  st.experimental_rerun() # Force rerun to reload the file_uploader object with new key
262
 
263
  # If session state is not empty, we will process stored images
264
- if not st.session_state['uploaded_files']:
265
  if len(uploaded_files) == 1:
266
  display_single_image(uploaded_files[0], st.session_state.max_img_size)
267
  elif len(uploaded_files) > 1:
 
261
  st.experimental_rerun() # Force rerun to reload the file_uploader object with new key
262
 
263
  # If session state is not empty, we will process stored images
264
+ if st.session_state['uploaded_files']:
265
  if len(uploaded_files) == 1:
266
  display_single_image(uploaded_files[0], st.session_state.max_img_size)
267
  elif len(uploaded_files) > 1: