Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -117,9 +117,8 @@ def infer(video_in):
|
|
117 |
print(break_interpolated_video[0])
|
118 |
for j, img in enumerate(break_interpolated_video[0]):
|
119 |
print(f"IMG:{img}")
|
120 |
-
img
|
121 |
-
|
122 |
-
result_frames.append(img)
|
123 |
print("frames " + str(idx) + " & " + str(idx+1) + "/" + str(n_frame) + ": done;")
|
124 |
|
125 |
final_vid = create_video(result_frames, fps, "interpolated")
|
|
|
117 |
print(break_interpolated_video[0])
|
118 |
for j, img in enumerate(break_interpolated_video[0]):
|
119 |
print(f"IMG:{img}")
|
120 |
+
os.rename(img, f"{frame}_to_{next_frame}_{j}.jpg")()
|
121 |
+
result_frames.append(f"{frame}_to_{next_frame}_{j}.jpg")
|
|
|
122 |
print("frames " + str(idx) + " & " + str(idx+1) + "/" + str(n_frame) + ": done;")
|
123 |
|
124 |
final_vid = create_video(result_frames, fps, "interpolated")
|