Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -129,12 +129,24 @@ def generate(
|
|
129 |
# "assets/7.png",
|
130 |
#"assets/8.png",
|
131 |
#"assets/9.png",
|
132 |
-
#"assets/10.png",
|
133 |
-
#"assets/11.png",
|
134 |
-
#"assets/12.png",
|
135 |
#]
|
136 |
#return predefined_images
|
137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
138 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
139 |
gr.Markdown(DESCRIPTIONXX)
|
140 |
with gr.Row():
|
@@ -249,13 +261,18 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
249 |
outputs=[result, seed],
|
250 |
api_name="run",
|
251 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
252 |
gr.Markdown("⚡Models used in the playground [[REALVISXL V5.0]](https://huggingface.co/SG161222/RealVisXL_V5.0), [[REALVISXL V5.0 LIGHTNING]](https://huggingface.co/SG161222/RealVisXL_V5.0_Lightning) for image generation. stable diffusion xl piped (sdxl) model HF. This is the demo space for generating images using the Stable Diffusion XL models, with multi different variants available.")
|
253 |
gr.Markdown("⚡This is the demo space for generating images using Stable Diffusion XL with quality styles, different models and types. Try the sample prompts to generate higher quality images. Try the sample prompts for generating higher quality images.<a href='https://huggingface.co/spaces/prithivMLmods/Top-Prompt-Collection' target='_blank'>Try prompts</a>.")
|
254 |
gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
|
255 |
-
|
256 |
-
# with gr.Column(scale=3):
|
257 |
-
# gr.Markdown("### Image Gallery")
|
258 |
-
# predefined_gallery = gr.Gallery(label="Image Gallery", columns=3, show_label=False, value=load_predefined_images())
|
259 |
|
260 |
if __name__ == "__main__":
|
261 |
demo.queue(max_size=20).launch(show_api=False)
|
|
|
129 |
# "assets/7.png",
|
130 |
#"assets/8.png",
|
131 |
#"assets/9.png",
|
|
|
|
|
|
|
132 |
#]
|
133 |
#return predefined_images
|
134 |
|
135 |
+
|
136 |
+
# def load_predefined_images():
|
137 |
+
# predefined_images = [
|
138 |
+
# "assets2/11.png",
|
139 |
+
# "assets2/22.png",
|
140 |
+
# "assets2/33.png",
|
141 |
+
# "assets2/44.png",
|
142 |
+
# "assets2/55.png",
|
143 |
+
# "assets2/66.png",
|
144 |
+
# "assets2/77.png",
|
145 |
+
# "assets2/88.png",
|
146 |
+
# "assets2/99.png",
|
147 |
+
# ]
|
148 |
+
# return predefined_images
|
149 |
+
|
150 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
151 |
gr.Markdown(DESCRIPTIONXX)
|
152 |
with gr.Row():
|
|
|
261 |
outputs=[result, seed],
|
262 |
api_name="run",
|
263 |
)
|
264 |
+
|
265 |
+
|
266 |
+
#gr.Markdown("### REALVISXL V5.0")
|
267 |
+
#predefined_gallery = gr.Gallery(label="REALVISXL V5.0", columns=3, show_label=False, value=load_predefined_images1())
|
268 |
+
|
269 |
+
#gr.Markdown("### LIGHTNING V5.0")
|
270 |
+
#predefined_gallery = gr.Gallery(label="LIGHTNING V5.0", columns=3, show_label=False, value=load_predefined_images())
|
271 |
+
|
272 |
gr.Markdown("⚡Models used in the playground [[REALVISXL V5.0]](https://huggingface.co/SG161222/RealVisXL_V5.0), [[REALVISXL V5.0 LIGHTNING]](https://huggingface.co/SG161222/RealVisXL_V5.0_Lightning) for image generation. stable diffusion xl piped (sdxl) model HF. This is the demo space for generating images using the Stable Diffusion XL models, with multi different variants available.")
|
273 |
gr.Markdown("⚡This is the demo space for generating images using Stable Diffusion XL with quality styles, different models and types. Try the sample prompts to generate higher quality images. Try the sample prompts for generating higher quality images.<a href='https://huggingface.co/spaces/prithivMLmods/Top-Prompt-Collection' target='_blank'>Try prompts</a>.")
|
274 |
gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
|
275 |
+
|
|
|
|
|
|
|
276 |
|
277 |
if __name__ == "__main__":
|
278 |
demo.queue(max_size=20).launch(show_api=False)
|