fffiloni commited on
Commit
7f9233d
·
verified ·
1 Parent(s): ed7df29

Update webgui.py

Browse files
Files changed (1) hide show
  1. webgui.py +1 -1
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
  # Ensure both width and height are divisible by 8
174
- new_width = (target_width // 8) * 8 # Force target width to be divisible by 8
175
  new_height = (new_height // 8) * 8 # Floor the height to the nearest multiple of 8
176
 
177
 
 
171
  new_height = int(original_height * (new_width / original_width))
172
 
173
  # Ensure both width and height are divisible by 8
174
+ new_width = (new_width // 8) * 8 # Force target width to be divisible by 8
175
  new_height = (new_height // 8) * 8 # Floor the height to the nearest multiple of 8
176
 
177