Spaces:
Sleeping
Sleeping
Commit
·
92f065c
1
Parent(s):
1e787aa
Update app.py
Browse files
app.py
CHANGED
@@ -53,12 +53,12 @@ def main(image):
|
|
53 |
print(err)
|
54 |
#emotion
|
55 |
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
|
63 |
# #Colour
|
64 |
|
|
|
53 |
print(err)
|
54 |
#emotion
|
55 |
|
56 |
+
try:
|
57 |
+
face_analysis_2=DeepFace.analyze(image, actions = ['emotion'], enforce_detection=False)
|
58 |
+
names.append(face_analysis_2["dominant_emotion"])
|
59 |
+
except:
|
60 |
+
print("No face")
|
61 |
+
names.append("No Face")
|
62 |
|
63 |
# #Colour
|
64 |
|