Rockk08 commited on
Commit
bb785f5
1 Parent(s): 08fd676

Update app.py

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