Spaces:
Build error
Build error
Chia Woon Yap
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -298,7 +298,8 @@ with gr.Blocks() as demo:
|
|
| 298 |
file_upload.change(process_document, inputs=file_upload, outputs=process_status)
|
| 299 |
|
| 300 |
# Add cleanup function to be triggered periodically (e.g., every time a button is clicked or after certain actions)
|
| 301 |
-
demo.load(lambda: cleanup_old_files(directory="./", age_limit=60), inputs=[], outputs=[])
|
|
|
|
| 302 |
|
| 303 |
|
| 304 |
demo.launch()
|
|
|
|
| 298 |
file_upload.change(process_document, inputs=file_upload, outputs=process_status)
|
| 299 |
|
| 300 |
# Add cleanup function to be triggered periodically (e.g., every time a button is clicked or after certain actions)
|
| 301 |
+
#demo.load(lambda: cleanup_old_files(directory="./", age_limit=60), inputs=[], outputs=[])
|
| 302 |
+
demo.load(lambda: (cleanup_old_files(directory="./", age_limit=60), []), inputs=[], outputs=[])
|
| 303 |
|
| 304 |
|
| 305 |
demo.launch()
|