staghado commited on
Commit
46a514f
1 Parent(s): b2f0be2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -112,6 +112,8 @@ def fourier_transform_drawing(input_image, frames, coefficients, img_size, blur_
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
  def setup_gradio_interface():
117
  interface = gr.Interface(
 
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
 
118
  def setup_gradio_interface():
119
  interface = gr.Interface(