Spaces:
Sleeping
Sleeping
Update webgui.py
Browse files
webgui.py
CHANGED
@@ -171,7 +171,7 @@ def process_video(uploaded_img, uploaded_audio, width, height, length, seed, fac
|
|
171 |
new_height = int(original_height * (new_width / original_width))
|
172 |
|
173 |
# Round the new height to the nearest multiple of 8
|
174 |
-
new_height = round(new_height
|
175 |
|
176 |
# Resize the image to the calculated dimensions
|
177 |
face_image = cv2.resize(face_img, (new_width, new_height))
|
|
|
171 |
new_height = int(original_height * (new_width / original_width))
|
172 |
|
173 |
# Round the new height to the nearest multiple of 8
|
174 |
+
new_height = round(new_height // 8) * 8
|
175 |
|
176 |
# Resize the image to the calculated dimensions
|
177 |
face_image = cv2.resize(face_img, (new_width, new_height))
|