Rockk08 commited on
Commit
7b853ba
·
verified ·
1 Parent(s): 84107ff

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="VGG-Face", 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="OpenFace", distance_metric='cosine')
45
  if result['verified']:
46
  flag = True
47
  # Extract username from the file name