akameswa commited on
Commit
c0a9bf8
1 Parent(s): 54920b5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -38,8 +38,9 @@ def infer(prompt, seed=42, randomize_seed=False, width=1024, height=1024, guidan
38
  good_vae=good_vae,
39
  ):
40
  images.append(img)
41
- images[0].save("output.gif", save_all=True, append_images=images[1:], duration=500, loop=0)
42
- yield img, seed, "output.gif"
 
43
 
44
  examples = [
45
  "a tiny astronaut hatching from an egg on the moon",
 
38
  good_vae=good_vae,
39
  ):
40
  images.append(img)
41
+
42
+ images[0].save("output.gif", save_all=True, append_images=images[1:], duration=500, loop=0)
43
+ yield images[-1], seed, "output.gif"
44
 
45
  examples = [
46
  "a tiny astronaut hatching from an egg on the moon",