Update app.py
Browse files
app.py
CHANGED
@@ -80,6 +80,7 @@ def extract_clip_features(image_path, model, preprocess):
|
|
80 |
|
81 |
# Main function
|
82 |
def compare_images(image1, image2, method):
|
|
|
83 |
start_time = time.time()
|
84 |
if method == 'pHash':
|
85 |
img1 = Image.open(image1)
|
|
|
80 |
|
81 |
# Main function
|
82 |
def compare_images(image1, image2, method):
|
83 |
+
similarity = None
|
84 |
start_time = time.time()
|
85 |
if method == 'pHash':
|
86 |
img1 = Image.open(image1)
|