Sangjun2 commited on
Commit
670efbe
·
verified ·
1 Parent(s): fd75669

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"./images/{image_name}.jpg"
660
  if not os.path.exists(image_path):
661
- raise FileNotFoundError(f"Image file not found: {image_path}")
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. 버튼 클릭 이벤트 핸들러