Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def fourier_transform_drawing(input_image, frames, coefficients, img_size, blur_
|
|
94 |
# Generate final animation as GIF
|
95 |
anim = animation.FuncAnimation(fig, animate, frames=frames, interval=5, fargs=(coefs, np.linspace(0, 1, num=frames)))
|
96 |
gif_buf = io.BytesIO()
|
97 |
-
anim.save(gif_buf, 'output.gif',
|
98 |
gif_buf.seek(0)
|
99 |
final_gif = Image.open(gif_buf)
|
100 |
final_gif = np.array(final_gif.convert('RGB'))
|
|
|
94 |
# Generate final animation as GIF
|
95 |
anim = animation.FuncAnimation(fig, animate, frames=frames, interval=5, fargs=(coefs, np.linspace(0, 1, num=frames)))
|
96 |
gif_buf = io.BytesIO()
|
97 |
+
anim.save(gif_buf, 'output.gif', fps=15)
|
98 |
gif_buf.seek(0)
|
99 |
final_gif = Image.open(gif_buf)
|
100 |
final_gif = np.array(final_gif.convert('RGB'))
|