Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -113,11 +113,11 @@ def fourier_transform_drawing(input_image, frames, coefficients, img_size, blur_
|
|
113 |
|
114 |
# Generate and save each frame as a PIL image, and ultimately the video
|
115 |
for frame in range(frames):
|
116 |
-
pil_image, _ = animate(frame, coefs,
|
117 |
yield pil_image, video_path
|
118 |
|
119 |
# Save the animation as a video
|
120 |
-
anim = animation.FuncAnimation(fig, animate, frames=frames, interval=5, fargs=(coefs,
|
121 |
anim.save(video_path, fps=15)
|
122 |
|
123 |
def setup_gradio_interface():
|
|
|
113 |
|
114 |
# Generate and save each frame as a PIL image, and ultimately the video
|
115 |
for frame in range(frames):
|
116 |
+
pil_image, _ = animate(frame, coefs, frame_times, fig, ax, background, circles, circle_lines, drawing, draw_x, draw_y, coefs_static, thetas)
|
117 |
yield pil_image, video_path
|
118 |
|
119 |
# Save the animation as a video
|
120 |
+
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))
|
121 |
anim.save(video_path, fps=15)
|
122 |
|
123 |
def setup_gradio_interface():
|