multimodalart HF Staff commited on
Commit
12d3bad
·
verified ·
1 Parent(s): 2a4cbaa

[maintenance] add lazy caching

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -257,7 +257,7 @@ with gr.Blocks(css=css) as demo:
257
  inputs=[input_image, prompt],
258
  outputs=[result, seed],
259
  fn=infer,
260
- cache_examples=False)
261
 
262
  gr.on(
263
  triggers=[run_button.click, prompt.submit],
 
257
  inputs=[input_image, prompt],
258
  outputs=[result, seed],
259
  fn=infer,
260
+ cache_examples="lazy")
261
 
262
  gr.on(
263
  triggers=[run_button.click, prompt.submit],