Turing311 commited on
Commit
30d9a11
·
1 Parent(s): abc1fdb
Files changed (1) hide show
  1. gradio/demo.py +2 -1
gradio/demo.py CHANGED
@@ -40,6 +40,7 @@ def compare_face(frame1, frame2):
40
  face1 = face1.resize((int(resized_w), int(resized_h)))
41
  log += "2 " + str(face1.width) + "\n"
42
  if data.get('face2') is not None:
 
43
  face = data.get('face2')
44
  x1 = face.get('x1')
45
  y1 = face.get('y1')
@@ -62,7 +63,7 @@ def compare_face(frame1, frame2):
62
 
63
  face2 = face2.resize((int(resized_w), int(resized_h)))
64
 
65
- log += "3 " + str(face2.width) + "\n"
66
  if face1 is not None and face2 is not None:
67
  new_image = Image.new('RGB',(face1.width + face2.width + 10, 150), (80,80,80))
68
 
 
40
  face1 = face1.resize((int(resized_w), int(resized_h)))
41
  log += "2 " + str(face1.width) + "\n"
42
  if data.get('face2') is not None:
43
+ log += "3 \n"
44
  face = data.get('face2')
45
  x1 = face.get('x1')
46
  y1 = face.get('y1')
 
63
 
64
  face2 = face2.resize((int(resized_w), int(resized_h)))
65
 
66
+ log += "3 " + str(face2) + "\n"
67
  if face1 is not None and face2 is not None:
68
  new_image = Image.new('RGB',(face1.width + face2.width + 10, 150), (80,80,80))
69