Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -30,8 +30,10 @@ for role_name in NAME_DICT:
|
|
30 |
role_en = NAME_DICT[role_name]
|
31 |
img_path = f'images/{role_en}.jpg'
|
32 |
if os.path.exists(img_path):
|
|
|
33 |
images[role_en] = Image.open(img_path)
|
34 |
else:
|
|
|
35 |
images[role_en] = None
|
36 |
|
37 |
|
|
|
30 |
role_en = NAME_DICT[role_name]
|
31 |
img_path = f'images/{role_en}.jpg'
|
32 |
if os.path.exists(img_path):
|
33 |
+
print(f"{img_path} loaded.")
|
34 |
images[role_en] = Image.open(img_path)
|
35 |
else:
|
36 |
+
print(f"{img_path} not found.")
|
37 |
images[role_en] = None
|
38 |
|
39 |
|