Turing311 commited on
Commit
4785f0b
·
1 Parent(s): 3baae49
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -21,7 +21,6 @@ def get_attributes(json):
21
  yaw = 3.24
22
  quality = 4.3
23
 
24
- print("Come here", liveness)
25
  return liveness, age, gender, emotion, ethnicity, mask, eye, facehair, haircolor, hairtype, headwear, activity, pitch, roll, yaw, quality
26
 
27
  def compare_face(frame1, frame2):
@@ -38,7 +37,7 @@ def compare_face(frame1, frame2):
38
 
39
  face1 = None
40
  face2 = None
41
- liveness1 = None
42
  res1 = r.json().get('image1')
43
  if res1 is not None:
44
  face = res1.get('detection')
 
21
  yaw = 3.24
22
  quality = 4.3
23
 
 
24
  return liveness, age, gender, emotion, ethnicity, mask, eye, facehair, haircolor, hairtype, headwear, activity, pitch, roll, yaw, quality
25
 
26
  def compare_face(frame1, frame2):
 
37
 
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')