RageshAntony commited on
Commit
992965e
·
verified ·
1 Parent(s): 0696a08
Files changed (1) hide show
  1. check_app.py +4 -2
check_app.py CHANGED
@@ -308,11 +308,12 @@ def load_images_from_directory(directory_path):
308
  Load all images from the specified directory.
309
  Returns a list of image file paths.
310
  """
311
- print(f"Loading {directory_path}")
312
  image_extensions = {'.jpg', '.jpeg', '.png', '.gif', '.bmp', '.webp'}
313
  directory = Path(directory_path)
314
 
315
  if not directory.exists():
 
316
  return [], f"Error: Directory '{directory_path}' does not exist"
317
 
318
  image_files = [
@@ -321,8 +322,9 @@ def load_images_from_directory(directory_path):
321
  ]
322
 
323
  if not image_files:
 
324
  return [], f"No images found in directory '{directory_path}'"
325
-
326
  return image_files, f"Found {len(image_files)} images"
327
 
328
  if __name__ == "__main__":
 
308
  Load all images from the specified directory.
309
  Returns a list of image file paths.
310
  """
311
+ print(f"Loading images {directory_path}")
312
  image_extensions = {'.jpg', '.jpeg', '.png', '.gif', '.bmp', '.webp'}
313
  directory = Path(directory_path)
314
 
315
  if not directory.exists():
316
+ print(f"NO Direc {directory_path} ")
317
  return [], f"Error: Directory '{directory_path}' does not exist"
318
 
319
  image_files = [
 
322
  ]
323
 
324
  if not image_files:
325
+ print(f"NO images {directory_path} ")
326
  return [], f"No images found in directory '{directory_path}'"
327
+ print(f"has images {directory_path} {len(image_files)}")
328
  return image_files, f"Found {len(image_files)} images"
329
 
330
  if __name__ == "__main__":