Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,10 @@ DESCRIPTIONXX = """## TEXT 2 IMAGE🥠"""
|
|
21 |
|
22 |
examples = [
|
23 |
|
24 |
-
"
|
25 |
-
"
|
|
|
|
|
26 |
]
|
27 |
|
28 |
MODEL_OPTIONS = {
|
@@ -160,23 +162,22 @@ def generate(
|
|
160 |
image_paths = [save_image(img) for img in images]
|
161 |
return image_paths, seed
|
162 |
|
163 |
-
def load_predefined_images():
|
164 |
-
predefined_images = [
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
]
|
178 |
-
return predefined_images
|
179 |
-
|
180 |
|
181 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
182 |
gr.Markdown(DESCRIPTIONXX)
|
@@ -302,8 +303,8 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
302 |
)
|
303 |
|
304 |
|
305 |
-
gr.Markdown("### Image Gallery")
|
306 |
-
predefined_gallery = gr.Gallery(label="Image Gallery", columns=3, show_label=False, value=load_predefined_images())
|
307 |
|
308 |
gr.Markdown(
|
309 |
"""
|
|
|
21 |
|
22 |
examples = [
|
23 |
|
24 |
+
"A tiny astronaut hatching from an egg on the moon, 4k, planet theme",
|
25 |
+
"An anime illustration of a wiener schnitzel --style raw5, 4K",
|
26 |
+
"Cold coffee in a cup bokeh --ar 85:128 --v 6.0 --style raw5, 4K, Photo-Realistic",
|
27 |
+
"A cat holding a sign that says hello world --ar 85:128 --v 6.0 --style raw"
|
28 |
]
|
29 |
|
30 |
MODEL_OPTIONS = {
|
|
|
162 |
image_paths = [save_image(img) for img in images]
|
163 |
return image_paths, seed
|
164 |
|
165 |
+
#def load_predefined_images():
|
166 |
+
# predefined_images = [
|
167 |
+
# "assets/1.png",
|
168 |
+
# "assets/2.png",
|
169 |
+
# "assets/3.png",
|
170 |
+
# "assets/4.png",
|
171 |
+
# "assets/5.png",
|
172 |
+
# "assets/6.png",
|
173 |
+
# "assets/7.png",
|
174 |
+
# "assets/8.png",
|
175 |
+
# "assets/9.png",
|
176 |
+
# "assets/10.png",
|
177 |
+
# "assets/11.png",
|
178 |
+
# "assets/12.png",
|
179 |
+
# ]
|
180 |
+
# return predefined_images
|
|
|
181 |
|
182 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
183 |
gr.Markdown(DESCRIPTIONXX)
|
|
|
303 |
)
|
304 |
|
305 |
|
306 |
+
#gr.Markdown("### Image Gallery")
|
307 |
+
#predefined_gallery = gr.Gallery(label="Image Gallery", columns=3, show_label=False, value=load_predefined_images())
|
308 |
|
309 |
gr.Markdown(
|
310 |
"""
|