kebson commited on
Commit
6022908
·
verified ·
1 Parent(s): 13c59ce

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -23,8 +23,22 @@ def extract_second_column(image_path):
23
 
24
  def main():
25
  images_dir = "images"
 
 
 
 
 
 
 
26
  all_results = []
27
 
 
 
 
 
 
 
 
28
  for filename in sorted(os.listdir(images_dir)):
29
  if filename.lower().endswith((".jpg", ".jpeg", ".png")):
30
  image_path = os.path.join(images_dir, filename)
 
23
 
24
  def main():
25
  images_dir = "images"
26
+
27
+ if not os.path.exists(images_dir):
28
+ raise FileNotFoundError(
29
+ f"Le dossier '{images_dir}' est introuvable. "
30
+ "Vérifiez qu'il est bien copié dans le conteneur Docker."
31
+ )
32
+
33
  all_results = []
34
 
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
  for filename in sorted(os.listdir(images_dir)):
43
  if filename.lower().endswith((".jpg", ".jpeg", ".png")):
44
  image_path = os.path.join(images_dir, filename)