Spaces:
Runtime error
Runtime error
Commit
•
b2bc3d3
1
Parent(s):
f887f9a
Update app.py
Browse files
app.py
CHANGED
@@ -163,8 +163,8 @@ def main():
|
|
163 |
|
164 |
st.subheader('Continue to face analysis :')
|
165 |
|
166 |
-
obj = DeepFace.analyze(img_path = listhead[1], actions = ['age', 'gender'
|
167 |
-
st.write(obj)
|
168 |
|
169 |
return
|
170 |
|
|
|
163 |
|
164 |
st.subheader('Continue to face analysis :')
|
165 |
|
166 |
+
obj = DeepFace.analyze(img_path = listhead[1], actions = ['age', 'gender'], enforce_detection=False)
|
167 |
+
st.write('age : ', obj['age'], 'gender : ', obj['gender'])
|
168 |
|
169 |
return
|
170 |
|