Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def verify_image(url1):
|
|
35 |
url = storage.child(f"{file.name}").get_url(None)
|
36 |
# print(url)
|
37 |
with requests.get(url) as response:
|
38 |
-
result = DeepFace.verify(f"{url1}",url, model_name="
|
39 |
if result['verified']:
|
40 |
flag = True
|
41 |
start_index = file.name.rfind('/')
|
|
|
35 |
url = storage.child(f"{file.name}").get_url(None)
|
36 |
# print(url)
|
37 |
with requests.get(url) as response:
|
38 |
+
result = DeepFace.verify(f"{url1}",url, model_name="Facenet", distance_metric='cosine')
|
39 |
if result['verified']:
|
40 |
flag = True
|
41 |
start_index = file.name.rfind('/')
|