Spaces:
Runtime error
Runtime error
Update
Browse files- gradio/demo.py +1 -1
gradio/demo.py
CHANGED
@@ -62,6 +62,7 @@ def compare_face(frame1, frame2):
|
|
62 |
|
63 |
face2 = face2.resize((int(resized_w), int(resized_h)))
|
64 |
|
|
|
65 |
if face1 is not None and face2 is not None:
|
66 |
new_image = Image.new('RGB',(face1.width + face2.width + 10, 150), (80,80,80))
|
67 |
|
@@ -82,7 +83,6 @@ def compare_face(frame1, frame2):
|
|
82 |
except:
|
83 |
pass
|
84 |
|
85 |
-
print('===========', faces.width, faces.height)
|
86 |
return [r.json(), faces]
|
87 |
|
88 |
with gr.Blocks() as demo:
|
|
|
62 |
|
63 |
face2 = face2.resize((int(resized_w), int(resized_h)))
|
64 |
|
65 |
+
print('=========', face1, face2)
|
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 |
|
|
|
83 |
except:
|
84 |
pass
|
85 |
|
|
|
86 |
return [r.json(), faces]
|
87 |
|
88 |
with gr.Blocks() as demo:
|