Spaces:
Sleeping
Sleeping
Commit
·
f2b4b73
1
Parent(s):
92f065c
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def main(image):
|
|
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")
|
|
|
55 |
|
56 |
try:
|
57 |
face_analysis_2=DeepFace.analyze(image, actions = ['emotion'], enforce_detection=False)
|
58 |
+
names.append(face_analysis_2[0]["dominant_emotion"])
|
59 |
except:
|
60 |
print("No face")
|
61 |
names.append("No Face")
|