Update app.py
Browse files
app.py
CHANGED
@@ -33,9 +33,9 @@ for species, imgpath in species_to_imgpath.items():
|
|
33 |
if filename.endswith('png') or filename.endswith('jpg'):
|
34 |
filepath = os.path.join(folderpath, filename)
|
35 |
imgname_to_filepath[filename] = filepath
|
36 |
-
nodename =
|
37 |
print(filename, filepath, filepath.split('.'), filepath.split('.')[0].split('-'))
|
38 |
-
protoID =
|
39 |
nodename_to_protoIDs[nodename].append(protoID)
|
40 |
|
41 |
|
|
|
33 |
if filename.endswith('png') or filename.endswith('jpg'):
|
34 |
filepath = os.path.join(folderpath, filename)
|
35 |
imgname_to_filepath[filename] = filepath
|
36 |
+
nodename = filename.split('.')[0].split('-')[0]
|
37 |
print(filename, filepath, filepath.split('.'), filepath.split('.')[0].split('-'))
|
38 |
+
protoID = filename.split('.')[0].split('-')[1]
|
39 |
nodename_to_protoIDs[nodename].append(protoID)
|
40 |
|
41 |
|