multimodalart HF staff commited on
Commit
d1c7480
1 Parent(s): baca00f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -196,6 +196,7 @@ def create_zoom_animation(previous_frame, next_frame, steps):
196
  if i == steps:
197
  resized_frame = next_frame.resize((512, 512), Image.LANCZOS)
198
  else:
 
199
  resized_frame = resized_prev
200
 
201
  interpolated_frames.append(resized_frame)
 
196
  if i == steps:
197
  resized_frame = next_frame.resize((512, 512), Image.LANCZOS)
198
  else:
199
+ resized_prev = cropped_prev.resize((512, 512), Image.LANCZOS)
200
  resized_frame = resized_prev
201
 
202
  interpolated_frames.append(resized_frame)