Sangjun2 commited on
Commit
0747f44
·
verified ·
1 Parent(s): 745191d

Update app.py

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