Spaces:
Runtime error
Runtime error
Update app.py
Browse files81 unmodified lines828384858687883 unmodified lines929394949596979881 unmodified lines def kill_process(): if process.poll() is None: # If the process is still running process.terminate() is_running = False yield "Process terminated after 6 minutes timeout.\n"
# Start a timer to kill the process after 6 minutes3 unmodified lines for line in process.stdout: yield line process.wait() # process.wait() timer.cancel() app.py+2-1