fffiloni commited on
Commit
4172cdb
1 Parent(s): 42cddc3

apply new gradio 5 rules for caching examples

Browse files

UserWarning: In future versions of Gradio, the `cache_examples` parameter will no longer accept a value of 'lazy'. To enable lazy caching in Gradio, you should set `cache_examples=True`, and `cache_mode='lazy'` instead.

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,