Spaces:
Sleeping
Sleeping
Corrected limit to 4 seconds not working properly
Browse files
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
|