Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -69,7 +69,7 @@ with gr.Blocks(css=CSS, theme="soft") as demo:
|
|
69 |
with gr.Group():
|
70 |
with gr.Row():
|
71 |
prompt = gr.Textbox(label='Enter your prompt (English)', scale=8)
|
72 |
-
ckpt = gr.Dropdown(label='
|
73 |
submit = gr.Button(scale=1, variant='primary')
|
74 |
img = gr.Image(label='DMD2 Generated Image')
|
75 |
gr.Examples(
|
@@ -77,7 +77,7 @@ with gr.Blocks(css=CSS, theme="soft") as demo:
|
|
77 |
inputs=prompt,
|
78 |
outputs=img,
|
79 |
fn=generate_image,
|
80 |
-
cache_examples=
|
81 |
)
|
82 |
|
83 |
prompt.submit(fn=generate_image,
|
|
|
69 |
with gr.Group():
|
70 |
with gr.Row():
|
71 |
prompt = gr.Textbox(label='Enter your prompt (English)', scale=8)
|
72 |
+
ckpt = gr.Dropdown(label='Steps',choices=['1-Step', '4-Step'], value='4-Step', interactive=True)
|
73 |
submit = gr.Button(scale=1, variant='primary')
|
74 |
img = gr.Image(label='DMD2 Generated Image')
|
75 |
gr.Examples(
|
|
|
77 |
inputs=prompt,
|
78 |
outputs=img,
|
79 |
fn=generate_image,
|
80 |
+
cache_examples="lazy",
|
81 |
)
|
82 |
|
83 |
prompt.submit(fn=generate_image,
|