Spaces:
Running
on
Zero
Running
on
Zero
minor UX change: change the gallery order so latest output is shown first
Browse fileschanges the gallery list to add the last output image to the beginning of the list so that it appears first
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 |
|