Updated app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
|