Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Commit
•
82dc768
1
Parent(s):
a5f93ad
Update app.py
Browse files
app.py
CHANGED
@@ -169,6 +169,23 @@ def generate(
|
|
169 |
image_paths = [save_image(img) for img in images]
|
170 |
return image_paths, seed
|
171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
|
173 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
174 |
gr.Markdown(DESCRIPTIONXX)
|
@@ -293,6 +310,10 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
293 |
outputs=[result, seed],
|
294 |
)
|
295 |
|
|
|
|
|
|
|
|
|
296 |
gr.Markdown(
|
297 |
"""
|
298 |
<div style="text-align: justify;">
|
|
|
169 |
image_paths = [save_image(img) for img in images]
|
170 |
return image_paths, seed
|
171 |
|
172 |
+
def load_predefined_images():
|
173 |
+
predefined_images = [
|
174 |
+
"assets/1.png",
|
175 |
+
"assets/2.png",
|
176 |
+
"assets/3.png",
|
177 |
+
"assets/4.png",
|
178 |
+
"assets/5.png",
|
179 |
+
"assets/6.png",
|
180 |
+
"assets/7.png",
|
181 |
+
"assets/8.png",
|
182 |
+
"assets/9.png",
|
183 |
+
"assets/10.png",
|
184 |
+
"assets/11.png",
|
185 |
+
"assets/12.png",
|
186 |
+
]
|
187 |
+
return predefined_images
|
188 |
+
|
189 |
|
190 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
191 |
gr.Markdown(DESCRIPTIONXX)
|
|
|
310 |
outputs=[result, seed],
|
311 |
)
|
312 |
|
313 |
+
|
314 |
+
gr.Markdown("### Image Gallery")
|
315 |
+
predefined_gallery = gr.Gallery(label="Image Gallery", columns=3, show_label=False, value=load_predefined_images())
|
316 |
+
|
317 |
gr.Markdown(
|
318 |
"""
|
319 |
<div style="text-align: justify;">
|