Spaces:
Sleeping
Sleeping
Squaad AI
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -98,6 +98,11 @@ def generate(
|
|
98 |
).images[0]
|
99 |
return image
|
100 |
|
|
|
|
|
|
|
|
|
|
|
101 |
with gr.Blocks(theme=gr.themes.Soft(), css="style.css") as demo:
|
102 |
gr.HTML(
|
103 |
"<p><center>π For any additional support, join our <a href='https://discord.gg/JprjXpjt9K'>Discord</a></center></p>"
|
@@ -194,6 +199,14 @@ with gr.Blocks(theme=gr.themes.Soft(), css="style.css") as demo:
|
|
194 |
value=25,
|
195 |
)
|
196 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
197 |
use_negative_prompt.change(
|
198 |
fn=lambda x: gr.update(visible=x),
|
199 |
inputs=use_negative_prompt,
|
|
|
98 |
).images[0]
|
99 |
return image
|
100 |
|
101 |
+
examples = [
|
102 |
+
"Astronaut in a jungle, cold color palette, muted colors, detailed, 8k",
|
103 |
+
"An astronaut riding a green horse",
|
104 |
+
]
|
105 |
+
|
106 |
with gr.Blocks(theme=gr.themes.Soft(), css="style.css") as demo:
|
107 |
gr.HTML(
|
108 |
"<p><center>π For any additional support, join our <a href='https://discord.gg/JprjXpjt9K'>Discord</a></center></p>"
|
|
|
199 |
value=25,
|
200 |
)
|
201 |
|
202 |
+
gr.Examples(
|
203 |
+
examples=examples,
|
204 |
+
inputs=prompt,
|
205 |
+
outputs=result,
|
206 |
+
fn=generate,
|
207 |
+
cache_examples=CACHE_EXAMPLES,
|
208 |
+
)
|
209 |
+
|
210 |
use_negative_prompt.change(
|
211 |
fn=lambda x: gr.update(visible=x),
|
212 |
inputs=use_negative_prompt,
|