vilarin commited on
Commit
fe16630
1 Parent(s): 938c332

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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='Select inference 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,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=False,
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,