Senasu commited on
Commit
a43db19
·
verified ·
1 Parent(s): b223f7b

Updated app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -67,7 +67,11 @@ if file is not None:
67
  images_dir = os.path.join(base_dir, "images") # Construct the images folder path
68
 
69
  for i, idx in enumerate(indices[0]):
70
- product_path = os.path.join(images_dir, filenames[idx])
 
 
 
 
71
  st.write(product_path)
72
  product_image = Image.open(product_path)
73
 
 
67
  images_dir = os.path.join(base_dir, "images") # Construct the images folder path
68
 
69
  for i, idx in enumerate(indices[0]):
70
+ st.write(i,idx)
71
+ product_filename = filenames[idx]
72
+ st.write(product_filename)
73
+ product_path = os.path.join(images_dir, product_filename)
74
+
75
  st.write(product_path)
76
  product_image = Image.open(product_path)
77