Spaces:
Sleeping
Sleeping
Update
Browse files
app.py
CHANGED
|
@@ -38,6 +38,7 @@ def compare_face(frame1, frame2):
|
|
| 38 |
face1 = None
|
| 39 |
face2 = None
|
| 40 |
liveness1, age1, gender1, emotion1, ethnicity1, mask1, eye1, facehair1, haircolor1, hairtype1, headwear1, activity1, pitch1, roll1, yaw1, quality1 = [None] * 16
|
|
|
|
| 41 |
res1 = r.json().get('image1')
|
| 42 |
if res1 is not None:
|
| 43 |
face = res1.get('detection')
|
|
|
|
| 38 |
face1 = None
|
| 39 |
face2 = None
|
| 40 |
liveness1, age1, gender1, emotion1, ethnicity1, mask1, eye1, facehair1, haircolor1, hairtype1, headwear1, activity1, pitch1, roll1, yaw1, quality1 = [None] * 16
|
| 41 |
+
liveness2, age2, gender2, emotion2, ethnicity2, mask2, eye2, facehair2, haircolor2, hairtype2, headwear2, activity2, pitch2, roll2, yaw2, quality2 = [None] * 16
|
| 42 |
res1 = r.json().get('image1')
|
| 43 |
if res1 is not None:
|
| 44 |
face = res1.get('detection')
|