Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -38,6 +38,7 @@ def extract_face(im):
|
|
38 |
cv2.imwrite(file_name, frame)
|
39 |
|
40 |
return file_name
|
|
|
41 |
def predict(im1, im2,thresh,model_name):
|
42 |
im1_face = Image.open(im1)
|
43 |
im2_face = Image.open(im2)
|
@@ -100,7 +101,7 @@ with demo:
|
|
100 |
face_1 = gr.Image(label='Face Detected 1',type='filepath')
|
101 |
face_2 = gr.Image(label='Face Detected 2',type='filepath')
|
102 |
fd_image_1.change(extract_face,fd_image_1,face_1)
|
103 |
-
|
104 |
|
105 |
|
106 |
with gr.Row():
|
|
|
38 |
cv2.imwrite(file_name, frame)
|
39 |
|
40 |
return file_name
|
41 |
+
|
42 |
def predict(im1, im2,thresh,model_name):
|
43 |
im1_face = Image.open(im1)
|
44 |
im2_face = Image.open(im2)
|
|
|
101 |
face_1 = gr.Image(label='Face Detected 1',type='filepath')
|
102 |
face_2 = gr.Image(label='Face Detected 2',type='filepath')
|
103 |
fd_image_1.change(extract_face,fd_image_1,face_1)
|
104 |
+
fd_image_2.change(extract_face,fd_image_2,face_2)
|
105 |
|
106 |
|
107 |
with gr.Row():
|