Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def image_similarity(target_image, image):
|
|
35 |
def format_image(image):
|
36 |
formatted_image = ""
|
37 |
for row in image:
|
38 |
-
formatted_row = ", ".join([f"
|
39 |
formatted_image += f"[{formatted_row}], "
|
40 |
return formatted_image[:-2]
|
41 |
|
|
|
35 |
def format_image(image):
|
36 |
formatted_image = ""
|
37 |
for row in image:
|
38 |
+
formatted_row = ", ".join([f"({', '.join(map(str, pixel))})" for pixel in row])
|
39 |
formatted_image += f"[{formatted_row}], "
|
40 |
return formatted_image[:-2]
|
41 |
|