Rockk08 commited on
Commit
18144e8
·
verified ·
1 Parent(s): a12752e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -41,7 +41,7 @@ def verify_image(url1):
41
  # Open the image using PIL
42
  img = Image.open(BytesIO(response.content))
43
  # Verify the image
44
- result = DeepFace.verify(url1, url, model_name="Facenet", distance_metric='cosine')
45
  if result['verified']:
46
  flag = True
47
  # Extract username from the file name
 
41
  # Open the image using PIL
42
  img = Image.open(BytesIO(response.content))
43
  # Verify the image
44
+ result = DeepFace.verify(url1, url, model_name="Facenet", distance_metric='cosine',enforce_detection=False)
45
  if result['verified']:
46
  flag = True
47
  # Extract username from the file name