multimodalart HF staff fffiloni commited on
Commit
6bd188d
1 Parent(s): 42cddc3

apply new gradio 5 rules for caching examples (#3)

Browse files

- apply new gradio 5 rules for caching examples (4172cdbe6dcdc8e6cde1778bc29344360faf6da0)


Co-authored-by: Sylvain Filoni <[email protected]>

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,