apply new gradio 5 rules for caching examples

#3
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -135,7 +135,8 @@ with gr.Blocks() as demo:
135
  fn=generate_video,
136
  inputs=t2v_prompt,
137
  outputs=t2v_output,
138
- cache_examples="lazy"
 
139
  )
140
  t2v_generate_btn.click(
141
  generate_video,
 
135
  fn=generate_video,
136
  inputs=t2v_prompt,
137
  outputs=t2v_output,
138
+ cache_examples=True,
139
+ cache_mode="lazy"
140
  )
141
  t2v_generate_btn.click(
142
  generate_video,