Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -105,13 +105,13 @@ def fourier_transform_drawing(input_image, frames, coefficients, img_size, blur_
|
|
105 |
|
106 |
# Generate and save each frame as a PIL image, and ultimately the video
|
107 |
for frame in range(frames):
|
108 |
-
|
109 |
-
pil_image = input_image
|
110 |
yield pil_image, video_path
|
111 |
|
112 |
# Save the animation as a video
|
113 |
-
anim = animation.FuncAnimation(fig, animate, frames=frames, interval=5, fargs=(coefs, frame_times, fig, ax, background, circles, circle_lines, drawing, draw_x, draw_y, coefs_static, thetas))
|
114 |
-
anim.save(video_path, fps=15)
|
115 |
|
116 |
yield pil_image, video_path
|
117 |
|
|
|
105 |
|
106 |
# Generate and save each frame as a PIL image, and ultimately the video
|
107 |
for frame in range(frames):
|
108 |
+
pil_image, _ = animate(frame, coefs, frame_times, fig, ax, background, circles, circle_lines, drawing, draw_x, draw_y, coefs_static, thetas)
|
109 |
+
#pil_image = input_image
|
110 |
yield pil_image, video_path
|
111 |
|
112 |
# Save the animation as a video
|
113 |
+
#anim = animation.FuncAnimation(fig, animate, frames=frames, interval=5, fargs=(coefs, frame_times, fig, ax, background, circles, circle_lines, drawing, draw_x, draw_y, coefs_static, thetas))
|
114 |
+
#anim.save(video_path, fps=15)
|
115 |
|
116 |
yield pil_image, video_path
|
117 |
|