multimodalart HF Staff commited on
Commit
f002026
·
verified ·
1 Parent(s): 2750248

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -63,7 +63,17 @@ with gr.Blocks(css=css, theme=theme) as demo:
63
  pag_layers = gr.Dropdown(label="Model layers to apply Pag to", info="mid is the one used on the paper, up and down blocks seem unstable", choices=["up", "mid", "down"], multiselect=True, value="mid")
64
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
65
  seed = gr.Slider(minimum=1, maximum=9007199254740991, step=1, randomize=True)
66
- gr.Examples(fn=run, examples=[" ", "an insect robot preparing a delicious meal, anime style", "a photo of a group of friends at an amusement park"], inputs=prompt, outputs=[output, seed], cache_examples=True)
 
 
 
 
 
 
 
 
 
 
67
  gr.on(
68
  triggers=[
69
  button.click,
 
63
  pag_layers = gr.Dropdown(label="Model layers to apply Pag to", info="mid is the one used on the paper, up and down blocks seem unstable", choices=["up", "mid", "down"], multiselect=True, value="mid")
64
  randomize_seed = gr.Checkbox(label="Randomize seed", value=True)
65
  seed = gr.Slider(minimum=1, maximum=9007199254740991, step=1, randomize=True)
66
+
67
+ gr.Examples(
68
+ fn=run,
69
+ examples=[" ",
70
+ "an insect robot preparing a delicious meal, anime style",
71
+ "a photo of a group of friends at an amusement park"],
72
+ inputs=prompt,
73
+ outputs=[output, seed],
74
+ cache_examples="lazy"
75
+ )
76
+
77
  gr.on(
78
  triggers=[
79
  button.click,