Spaces:
Runtime error
Runtime error
Update src/similarity/similarity.py
Browse files
src/similarity/similarity.py
CHANGED
@@ -28,7 +28,7 @@ class Similarity:
|
|
28 |
print(f'{i} -- distance: {dist}')
|
29 |
# results.append((imgs[i], f'similarity: {int(dist*100)}%'))
|
30 |
original_img = image_util.load_image_url(img_urls[i], required_size=None, image_type='pil')
|
31 |
-
results.append((original_img, f'
|
32 |
|
33 |
return results
|
34 |
|
|
|
28 |
print(f'{i} -- distance: {dist}')
|
29 |
# results.append((imgs[i], f'similarity: {int(dist*100)}%'))
|
30 |
original_img = image_util.load_image_url(img_urls[i], required_size=None, image_type='pil')
|
31 |
+
results.append((original_img, f'شباهت: {int(dist*100)}%'))
|
32 |
|
33 |
return results
|
34 |
|