Emma02 commited on
Commit
7252814
1 Parent(s): f747736

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ def load_example_image_groups(directory):
30
  if os.path.isdir(subdir_path):
31
  example_groups[subdir] = []
32
  images = [f for f in os.listdir(subdir_path) if f.lower().endswith(('.png', '.jpg', '.jpeg'))]
33
- images are natsorted(images, key=natural_sort_key)
34
  for filename in images:
35
  img = Image.open(os.path.join(subdir_path, filename))
36
  example_groups[subdir].append(img)
 
30
  if os.path.isdir(subdir_path):
31
  example_groups[subdir] = []
32
  images = [f for f in os.listdir(subdir_path) if f.lower().endswith(('.png', '.jpg', '.jpeg'))]
33
+ images = natsorted(images, key=natural_sort_key)
34
  for filename in images:
35
  img = Image.open(os.path.join(subdir_path, filename))
36
  example_groups[subdir].append(img)