Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Commit
•
822c939
1
Parent(s):
7692144
Update app.py
Browse files
app.py
CHANGED
@@ -132,9 +132,6 @@ def generate(
|
|
132 |
|
133 |
examples = [
|
134 |
"A man dressed in sunglasses and brown jacket, in the style of cypherpunk, timeless beauty, exacting precision, uhd image, aleksandr deyneka, matte background, leather/hide --ar 67:101 --v 5",
|
135 |
-
"A studio portrait of a brunette model wearing a dress in front of a natural background --v 6.0 --style raw",
|
136 |
-
"Man in the style of dark beige and brown, uhd image, youthful protagonists, nonrepresentational",
|
137 |
-
"Cityscape in the style of realistic emotive portrait, queer academia, realist detail, california plein air, pensive portraiture, tanbi kei, mote kei",
|
138 |
"A black suit with black and white stripes, in the style of claire-obscure lighting, realistic genre scenes, light amber and violet, portraits with soft lighting, photo-realistic, cinematic lighting, hyper-realistic pop --ar 51:64 --v 5.2"
|
139 |
]
|
140 |
|
@@ -146,6 +143,22 @@ footer {
|
|
146 |
}
|
147 |
'''
|
148 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
149 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
150 |
gr.Markdown(DESCRIPTIONz)
|
151 |
with gr.Group():
|
@@ -250,7 +263,9 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
250 |
outputs=[result, seed],
|
251 |
api_name="run",
|
252 |
)
|
253 |
-
|
|
|
|
|
254 |
#gr.Markdown("**⚠️Disclaimer:**")
|
255 |
# gr.Markdown("This space provides realistic image generation, which works better for human faces and portraits. Realistic trigger works properly. users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
|
256 |
|
|
|
132 |
|
133 |
examples = [
|
134 |
"A man dressed in sunglasses and brown jacket, in the style of cypherpunk, timeless beauty, exacting precision, uhd image, aleksandr deyneka, matte background, leather/hide --ar 67:101 --v 5",
|
|
|
|
|
|
|
135 |
"A black suit with black and white stripes, in the style of claire-obscure lighting, realistic genre scenes, light amber and violet, portraits with soft lighting, photo-realistic, cinematic lighting, hyper-realistic pop --ar 51:64 --v 5.2"
|
136 |
]
|
137 |
|
|
|
143 |
}
|
144 |
'''
|
145 |
|
146 |
+
def load_predefined_images():
|
147 |
+
predefined_images = [
|
148 |
+
"assets/A.png",
|
149 |
+
"assets/B.png",
|
150 |
+
"assets/C.png",
|
151 |
+
"assets/D.png",
|
152 |
+
"assets/E.png",
|
153 |
+
"assets/F.png",
|
154 |
+
"assets/G.png",
|
155 |
+
"assets/H.png",
|
156 |
+
"assets/I.png",
|
157 |
+
]
|
158 |
+
return predefined_images
|
159 |
+
|
160 |
+
|
161 |
+
|
162 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
163 |
gr.Markdown(DESCRIPTIONz)
|
164 |
with gr.Group():
|
|
|
263 |
outputs=[result, seed],
|
264 |
api_name="run",
|
265 |
)
|
266 |
+
# Adding a predefined gallery section
|
267 |
+
gr.Markdown("### Generated Images")
|
268 |
+
predefined_gallery = gr.Gallery(label="Generated Images", columns=3, show_label=False, value=load_predefined_images())
|
269 |
#gr.Markdown("**⚠️Disclaimer:**")
|
270 |
# gr.Markdown("This space provides realistic image generation, which works better for human faces and portraits. Realistic trigger works properly. users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
|
271 |
|