Spaces:
Runtime error
Runtime error
fix a typo
Browse files
webgui.py
CHANGED
@@ -176,7 +176,7 @@ def process_video(uploaded_img, uploaded_audio, width, height, length, seed, fac
|
|
176 |
|
177 |
|
178 |
# Resize the image to the calculated dimensions
|
179 |
-
|
180 |
|
181 |
face_mask = np.zeros((face_img.shape[0], face_img.shape[1])).astype('uint8')
|
182 |
det_bboxes, probs = face_detector.detect(face_img)
|
|
|
176 |
|
177 |
|
178 |
# Resize the image to the calculated dimensions
|
179 |
+
face_img = cv2.resize(face_img, (new_width, new_height))
|
180 |
|
181 |
face_mask = np.zeros((face_img.shape[0], face_img.shape[1])).astype('uint8')
|
182 |
det_bboxes, probs = face_detector.detect(face_img)
|