multimodalart HF staff commited on
Commit
006bb0b
1 Parent(s): 332867e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -195,12 +195,8 @@ def create_zoom_animation(previous_frame, next_frame, steps):
195
  # Resize to 512x512
196
  resized_prev = cropped_prev.resize((512, 512), Image.LANCZOS)
197
 
198
- # For the last frame, use the next_frame resized to 512x512
199
- if i != steps:
200
- resized_frame = resized_prev
201
-
202
- # Append the resized frame to the list
203
- interpolated_frames.append(resized_frame)
204
 
205
  return interpolated_frames
206
 
 
195
  # Resize to 512x512
196
  resized_prev = cropped_prev.resize((512, 512), Image.LANCZOS)
197
 
198
+ resized_frame = resized_prev
199
+ interpolated_frames.append(resized_frame)
 
 
 
 
200
 
201
  return interpolated_frames
202