Squaad AI commited on
Commit
c93f9c0
Β·
verified Β·
1 Parent(s): 21205f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
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,