docs: add Gradio cache usage (#312)

Signed-off-by: Tiago Santana <54704492+SantanaTiago@users.noreply.github.com>
This commit is contained in:
Tiago Santana
2025-08-13 15:49:54 +01:00
committed by GitHub
parent d26e6637d8
commit d584895e11
2 changed files with 8 additions and 1 deletions

View File

@@ -480,7 +480,7 @@ with gr.Blocks(
css=css,
theme=theme,
title="Docling Serve",
delete_cache=(3600, 3600), # Delete all files older than 1 hour every hour
delete_cache=(3600, 36000), # Delete all files older than 10 hour every hour
) as ui:
# Constants stored in states to be able to pass them as inputs to functions
processing_text = gr.State("Processing your document(s), please wait...")