Spaces:
Running
on
Zero
Running
on
Zero
prithivMLmods
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -10,13 +10,20 @@ import torch
|
|
10 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
11 |
|
12 |
css = '''
|
13 |
-
.gradio-container{max-width:
|
14 |
h1{text-align:center}
|
15 |
footer {
|
16 |
visibility: hidden
|
17 |
}
|
18 |
'''
|
19 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
examples = [
|
21 |
"Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
|
22 |
"Chocolate dripping from a donut against a yellow background, 8k",
|
@@ -135,6 +142,7 @@ def load_predefined_images():
|
|
135 |
return predefined_images
|
136 |
|
137 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
|
138 |
with gr.Row():
|
139 |
prompt = gr.Text(
|
140 |
label="Prompt",
|
@@ -248,8 +256,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
|
248 |
api_name="run",
|
249 |
)
|
250 |
gr.Markdown("🥠Models used in the playground [[Lightning]](https://huggingface.co/SG161222/RealVisXL_V4.0_Lightning), [[AuraFlow]](https://huggingface.co/fal/AuraFlow) ,[[Turbo]](https://huggingface.co/SG161222/RealVisXL_V3.0_Turbo) 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. ⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
|
251 |
-
|
252 |
-
gr.Markdown("🥠This is the demo space for generating images using Stable Diffusion with grids, filters, templates, quality styles, 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>.")
|
253 |
gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
|
254 |
|
255 |
with gr.Column(scale=3):
|
|
|
10 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
11 |
|
12 |
css = '''
|
13 |
+
.gradio-container{max-width: 560px !important}
|
14 |
h1{text-align:center}
|
15 |
footer {
|
16 |
visibility: hidden
|
17 |
}
|
18 |
'''
|
19 |
|
20 |
+
|
21 |
+
DESCRIPTIONXX = """
|
22 |
+
|
23 |
+
## TEXT 2 IMG🥠
|
24 |
+
|
25 |
+
"""
|
26 |
+
|
27 |
examples = [
|
28 |
"Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
|
29 |
"Chocolate dripping from a donut against a yellow background, 8k",
|
|
|
142 |
return predefined_images
|
143 |
|
144 |
with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
|
145 |
+
gr.Markdown(DESCRIPTIONXX)
|
146 |
with gr.Row():
|
147 |
prompt = gr.Text(
|
148 |
label="Prompt",
|
|
|
256 |
api_name="run",
|
257 |
)
|
258 |
gr.Markdown("🥠Models used in the playground [[Lightning]](https://huggingface.co/SG161222/RealVisXL_V4.0_Lightning), [[AuraFlow]](https://huggingface.co/fal/AuraFlow) ,[[Turbo]](https://huggingface.co/SG161222/RealVisXL_V3.0_Turbo) 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. ⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
|
259 |
+
gr.Markdown("🥠This is the demo space for generating images using Stable Diffusion 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>.")
|
|
|
260 |
gr.Markdown("⚠️ users are accountable for the content they generate and are responsible for ensuring it meets appropriate ethical standards.")
|
261 |
|
262 |
with gr.Column(scale=3):
|