staghado commited on
Commit
b7d0b5b
·
1 Parent(s): 2726595

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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, time, fig, ax, background, circles, circle_lines, drawing, draw_x, draw_y, coefs_static, theta)
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, time, fig, ax, background, circles, circle_lines, drawing, draw_x, draw_y, coefs_static, theta))
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():