Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,9 @@ import pandas as pd
|
|
15 |
def get_deepface(image):
|
16 |
df = DeepFace.find(img_path=image, db_path=db_path)
|
17 |
d = DeepFace.analyze(img_path=image)
|
18 |
-
new_list = zip(d.keys(), d.values())
|
19 |
-
new_list = list(new_list)
|
20 |
-
return
|
21 |
|
22 |
description = "Deepface is a lightweight face recognition and facial attribute analysis (age, gender, emotion and race) framework for python. It is a hybrid face recognition framework wrapping state-of-the-art models: VGG-Face, Google FaceNet, OpenFace, Facebook DeepFace, DeepID, ArcFace and Dlib."
|
23 |
|
|
|
15 |
def get_deepface(image):
|
16 |
df = DeepFace.find(img_path=image, db_path=db_path)
|
17 |
d = DeepFace.analyze(img_path=image)
|
18 |
+
#new_list = zip(d.keys(), d.values())
|
19 |
+
#new_list = list(new_list)
|
20 |
+
return d
|
21 |
|
22 |
description = "Deepface is a lightweight face recognition and facial attribute analysis (age, gender, emotion and race) framework for python. It is a hybrid face recognition framework wrapping state-of-the-art models: VGG-Face, Google FaceNet, OpenFace, Facebook DeepFace, DeepID, ArcFace and Dlib."
|
23 |
|