Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ nodename_to_protoIDs = defaultdict()
|
|
27 |
|
28 |
for species, imgpath in species_to_imgpath.items():
|
29 |
for foldername in os.listdir(imgpath):
|
30 |
-
if os.isdir(os.path.join(imgpath, foldername)):
|
31 |
folderpath = os.path.join(imgpath, foldername)
|
32 |
for filename in os.listdir(folderpath):
|
33 |
if filename.endswith('png') or filename.endswith('jpg'):
|
|
|
27 |
|
28 |
for species, imgpath in species_to_imgpath.items():
|
29 |
for foldername in os.listdir(imgpath):
|
30 |
+
if os.path.isdir(os.path.join(imgpath, foldername)):
|
31 |
folderpath = os.path.join(imgpath, foldername)
|
32 |
for filename in os.listdir(folderpath):
|
33 |
if filename.endswith('png') or filename.endswith('jpg'):
|