testdeep123 commited on
Commit
8bf3a47
·
verified ·
1 Parent(s): fd89953

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -441,7 +441,7 @@ def apply_kenburns_effect(clip, target_resolution, effect_type=None):
441
  elif effect_type == "up-left":
442
  start_zoom = 1.0
443
  end_zoom = 1.0
444
- start_center = (max_offset_x + target start_center = (max_offset_x + target_w / 2, max_offset_y + target_h / 2)
445
  end_center = (target_w / 2, target_h / 2)
446
  else:
447
  raise ValueError(f"Unsupported effect_type: {effect_type}")
 
441
  elif effect_type == "up-left":
442
  start_zoom = 1.0
443
  end_zoom = 1.0
444
+ start_center = (max_offset_x + target_w / 2, max_offset_y + target_h / 2)
445
  end_center = (target_w / 2, target_h / 2)
446
  else:
447
  raise ValueError(f"Unsupported effect_type: {effect_type}")