victor HF Staff commited on
Commit
1e56d4a
·
1 Parent(s): fa24ab1

feat: Enable lazy cached examples (Gradio 6)

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -668,7 +668,8 @@ with gr.Blocks() as demo:
668
  outputs=[generated_video, generated_command],
669
  fn=update,
670
  run_on_click=True,
671
- cache_examples=False,
 
672
  )
673
 
674
  with gr.Row():
 
668
  outputs=[generated_video, generated_command],
669
  fn=update,
670
  run_on_click=True,
671
+ cache_examples=True,
672
+ cache_mode="lazy",
673
  )
674
 
675
  with gr.Row():