Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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,
|