haor commited on
Commit
3e4553e
1 Parent(s): 436f0f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)