amisima commited on
Commit
6f2c7f6
·
verified ·
1 Parent(s): dbce565

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -1232,7 +1232,10 @@ HERO = """
1232
  </div>
1233
  """
1234
 
1235
- with gr.Blocks(delete_cache=(3600, 10800)) as demo:
 
 
 
1236
  gr.HTML("<style>" + CSS + "</style>")
1237
  gr.HTML(HERO)
1238
 
 
1232
  </div>
1233
  """
1234
 
1235
+ # (sweep every hour, keep files for a day). The old (3600, 10800) deleted a grabbed frame after
1236
+ # three hours while the page still showed it, and the next Generate died in gradio's own
1237
+ # preprocessing with FileNotFoundError before this code ran.
1238
+ with gr.Blocks(delete_cache=(3600, 86400)) as demo:
1239
  gr.HTML("<style>" + CSS + "</style>")
1240
  gr.HTML(HERO)
1241