the-walking-fish commited on
Commit
6fb1636
·
verified ·
1 Parent(s): e8e2827

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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="輸入文本")