Vicente Alvarez commited on
Commit
6340d13
·
1 Parent(s): 4ac107d

Add Gradio cache cleanup (delete files >2h old)

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -339,7 +339,7 @@ def generate_video(
339
  return None, current_seed
340
 
341
 
342
- with gr.Blocks(title="Element-16 Video") as demo:
343
  gr.Markdown("# Element-16: Fast Video Generation with Frame Conditioning")
344
  gr.Markdown(
345
  "High quality video + audio generation with first and last frame conditioning. "
 
339
  return None, current_seed
340
 
341
 
342
+ with gr.Blocks(title="Element-16 Video", delete_cache=(3600, 7200)) as demo: # cleanup: check every 1h, delete files >2h old
343
  gr.Markdown("# Element-16: Fast Video Generation with Frame Conditioning")
344
  gr.Markdown(
345
  "High quality video + audio generation with first and last frame conditioning. "