Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -656,9 +656,9 @@ image_names = []
|
|
| 656 |
|
| 657 |
def show_image(current_idx):
|
| 658 |
image_name=image_names[current_idx]
|
| 659 |
-
image_path = f"./
|
| 660 |
if not os.path.exists(image_path):
|
| 661 |
-
|
| 662 |
return Image.open(image_path)
|
| 663 |
|
| 664 |
# 4. 버튼 클릭 이벤트 핸들러
|
|
|
|
| 656 |
|
| 657 |
def show_image(current_idx):
|
| 658 |
image_name=image_names[current_idx]
|
| 659 |
+
image_path = f"./top_20_percent_images/{image_name}.jpg"
|
| 660 |
if not os.path.exists(image_path):
|
| 661 |
+
image_path = f"./bottom_20_percent_images/{image_name}.jpg"
|
| 662 |
return Image.open(image_path)
|
| 663 |
|
| 664 |
# 4. 버튼 클릭 이벤트 핸들러
|