phyloforfun commited on
Commit
6bef370
1 Parent(s): c3e4ae3
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -1429,10 +1429,8 @@ def content_tab_settings():
1429
  st.session_state['input_list_small'].append(file_path_small)
1430
  print(uploaded_file.name)
1431
 
1432
- if determine_n_images():
1433
- st.session_state['processing_add_on'] = f" {determine_n_images()} Images"
1434
- else:
1435
- st.session_state['processing_add_on'] = ''
1436
  print(f"HERE --- {st.session_state['processing_add_on']}")
1437
 
1438
  with col_local_2:
 
1429
  st.session_state['input_list_small'].append(file_path_small)
1430
  print(uploaded_file.name)
1431
 
1432
+ n_images = len([f for f in os.listdir(st.session_state['dir_uploaded_images']) if os.path.isfile(os.path.join(st.session_state['dir_uploaded_images'], f))])
1433
+ st.session_state['processing_add_on'] = f" {n_images} Images"
 
 
1434
  print(f"HERE --- {st.session_state['processing_add_on']}")
1435
 
1436
  with col_local_2: