Spaces:
Runtime error
Runtime error
NassimeBejaia
commited on
Commit
•
2dafcb9
1
Parent(s):
0d47f49
Update app.py
Browse files
app.py
CHANGED
@@ -160,14 +160,13 @@ def main():
|
|
160 |
st.success("Click again to retry or try a different video by uploading")
|
161 |
nbperson, listhead = extract_heads(filepath, frame0)
|
162 |
|
163 |
-
|
164 |
-
st.write('age : ', obj['age'], 'gender : ', obj['gender'])
|
165 |
-
|
166 |
display_heads_(nbperson, listhead)
|
167 |
|
168 |
st.subheader('Continue to face analysis :')
|
169 |
|
170 |
-
|
|
|
171 |
|
172 |
return
|
173 |
|
|
|
160 |
st.success("Click again to retry or try a different video by uploading")
|
161 |
nbperson, listhead = extract_heads(filepath, frame0)
|
162 |
|
163 |
+
|
|
|
|
|
164 |
display_heads_(nbperson, listhead)
|
165 |
|
166 |
st.subheader('Continue to face analysis :')
|
167 |
|
168 |
+
obj = DeepFace.analyze(img_path = listhead[1], actions = ['age', 'gender'], enforce_detection=False)
|
169 |
+
st.write('age : ', obj['age'], 'gender : ', obj['gender'])
|
170 |
|
171 |
return
|
172 |
|