Upload app.py
Browse files
app.py
CHANGED
|
@@ -1232,7 +1232,10 @@ HERO = """
|
|
| 1232 |
</div>
|
| 1233 |
"""
|
| 1234 |
|
| 1235 |
-
|
|
|
|
|
|
|
|
|
|
| 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 |
|