diff --git a/predict.py b/predict.py index 0bec7ca..19f1eb7 100644 --- a/predict.py +++ b/predict.py @@ -67,6 +67,9 @@ def predict( # Start the shell command and capture its output command = [ + # Run with GNU timeout to prevent runaway processes + "timeout", + "10m", "./clip.sh", route, f"--start-seconds={startSeconds}",