mrneuralnet commited on
Commit
c41028f
1 Parent(s): 7fb6afa

Modify filepicker

Browse files
Files changed (2) hide show
  1. file_picker.py +1 -1
  2. sample_files/.gitkeep +0 -0
file_picker.py CHANGED
@@ -25,7 +25,7 @@ def st_file_selector(st_placeholder, path='.', label='Select a file/folder', key
25
  if key+'curr_dir' not in st.session_state:
26
  base_path = '.' if path is None or path == '' else path
27
  base_path = base_path if os.path.isdir(base_path) else os.path.dirname(base_path)
28
- base_path = '.' if base_path is None or base_path is '' else base_path
29
 
30
  files = sorted(os.listdir(base_path))
31
  files.insert(0, 'Choose a file...')
 
25
  if key+'curr_dir' not in st.session_state:
26
  base_path = '.' if path is None or path == '' else path
27
  base_path = base_path if os.path.isdir(base_path) else os.path.dirname(base_path)
28
+ base_path = '.' if base_path is None or base_path == '' else base_path
29
 
30
  files = sorted(os.listdir(base_path))
31
  files.insert(0, 'Choose a file...')
sample_files/.gitkeep ADDED
File without changes