linoyts HF Staff commited on
Commit
ca98314
·
verified ·
1 Parent(s): 6676b8d

minor UX change: change the gallery order so latest output is shown first

Browse files

changes the gallery list to add the last output image to the beginning of the list so that it appears first

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -468,7 +468,8 @@ def generate(
468
 
469
  if gallery_images is None:
470
  gallery_images = []
471
- gallery_images.append(image)
 
472
 
473
  return gallery_images, str(new_seed), int(new_seed)
474
 
 
468
 
469
  if gallery_images is None:
470
  gallery_images = []
471
+ # gallery_images.append(image)
472
+ gallery_images = [image] + gallery_images # latest output to be at the top of the list
473
 
474
  return gallery_images, str(new_seed), int(new_seed)
475