Terry Zhuo commited on
Commit
c9010bb
·
1 Parent(s): bdae256

increase kill time

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -81,10 +81,10 @@ def run_bigcodebench(command):
81
  if process.poll() is None: # If the process is still running
82
  process.terminate()
83
  is_running = False
84
- yield "Process terminated after 6 minutes timeout.\n"
85
 
86
- # Start a timer to kill the process after 6 minutes
87
- timer = threading.Timer(360, kill_process)
88
  timer.start()
89
 
90
  for line in process.stdout:
 
81
  if process.poll() is None: # If the process is still running
82
  process.terminate()
83
  is_running = False
84
+ yield "Process terminated after 12 minutes timeout.\n"
85
 
86
+ # Start a timer to kill the process after 12 minutes
87
+ timer = threading.Timer(720, kill_process)
88
  timer.start()
89
 
90
  for line in process.stdout: