Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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'
|
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
|