Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -664,9 +664,9 @@ current_index = 0
|
|
664 |
image_names = []
|
665 |
def show_image(current_idx):
|
666 |
image_name=image_names[current_idx]
|
667 |
-
image_path = f"./
|
668 |
if not os.path.exists(image_path):
|
669 |
-
|
670 |
return Image.open(image_path)
|
671 |
|
672 |
# 4. 버튼 클릭 이벤트 핸들러
|
|
|
664 |
image_names = []
|
665 |
def show_image(current_idx):
|
666 |
image_name=image_names[current_idx]
|
667 |
+
image_path = f"./top_20_percent_images/{image_name}.jpg"
|
668 |
if not os.path.exists(image_path):
|
669 |
+
image_path = f"./bottom_20_percent_images/{image_name}.jpg"
|
670 |
return Image.open(image_path)
|
671 |
|
672 |
# 4. 버튼 클릭 이벤트 핸들러
|