Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ def cleanup_temp_files(temp_dir, max_age_seconds=3600):
|
|
42 |
|
43 |
# 啟動清理臨時文件的線程
|
44 |
tempfile_tempdir = tempfile.gettempdir()
|
45 |
-
cleanup_thread = threading.Thread(target=cleanup_temp_files, args=(tempfile_tempdir,), daemon=True)
|
46 |
cleanup_thread.start()
|
47 |
|
48 |
input_text = gr.Textbox(lines=5, label="輸入文本")
|
|
|
42 |
|
43 |
# 啟動清理臨時文件的線程
|
44 |
tempfile_tempdir = tempfile.gettempdir()
|
45 |
+
cleanup_thread = threading.Thread(target=cleanup_temp_files, args=(tempfile_tempdir,30), daemon=True)
|
46 |
cleanup_thread.start()
|
47 |
|
48 |
input_text = gr.Textbox(lines=5, label="輸入文本")
|