fffiloni commited on
Commit
2167d4d
1 Parent(s): 0360e48

Corrected limit to 4 seconds not working properly

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -105,7 +105,7 @@ def infer(video_in,interpolation,fps_output):
105
 
106
 
107
 
108
- for idx, frame in enumerate(frames_list):
109
  if idx < len(frames_list) - 1:
110
  next_frame = frames_list[idx+1]
111
  interpolated_frames = do_interpolation(frame, next_frame,interpolation) # should return a list of 3 interpolated frames
 
105
 
106
 
107
 
108
+ for idx, frame in enumerate(frames_list[0:int(n_frame)]):
109
  if idx < len(frames_list) - 1:
110
  next_frame = frames_list[idx+1]
111
  interpolated_frames = do_interpolation(frame, next_frame,interpolation) # should return a list of 3 interpolated frames