Spaces:
Running
on
Zero
Running
on
Zero
apply new gradio 5 rules for caching examples
#3
by
fffiloni
- opened
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=
|
|
|
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,
|