Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
73257b7
1
Parent(s):
c5554e4
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,6 @@ def inference(img, img2):
|
|
51 |
hash_bits = ''.join(['1' if it >= 0 else '0' for it in hash_output])
|
52 |
hash_hex = '{:0{}x}'.format(int(hash_bits, 2), len(hash_bits) // 4)
|
53 |
|
54 |
-
|
55 |
image2 = Image.open(img2.name).convert('RGB')
|
56 |
image2 = image2.resize([360, 360])
|
57 |
arr2 = np.array(image2).astype(np.float32) / 255.0
|
|
|
51 |
hash_bits = ''.join(['1' if it >= 0 else '0' for it in hash_output])
|
52 |
hash_hex = '{:0{}x}'.format(int(hash_bits, 2), len(hash_bits) // 4)
|
53 |
|
|
|
54 |
image2 = Image.open(img2.name).convert('RGB')
|
55 |
image2 = image2.resize([360, 360])
|
56 |
arr2 = np.array(image2).astype(np.float32) / 255.0
|