]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
livestream.sh : run main with model arg instead of default (#453)
authorEric Tendian <redacted>
Thu, 26 Jan 2023 23:13:31 +0000 (17:13 -0600)
committerGitHub <redacted>
Thu, 26 Jan 2023 23:13:31 +0000 (01:13 +0200)
Actually utilizes the $model var when calling ./main.

examples/livestream.sh

index e24d0deba1d05fec59c8c27fded90bb5efd44c36..42d0102fd58ee0f970676a0ce14e1a3fbff5aa12 100755 (executable)
@@ -100,7 +100,7 @@ while [ $running -eq 1 ]; do
         err=$(cat /tmp/whisper-live.err | wc -l)
     done
 
-    ./main -t 8 -m ./models/ggml-base.en.bin -f /tmp/whisper-live.wav --no-timestamps -otxt 2> /tmp/whispererr | tail -n 1
+    ./main -t 8 -m ./models/ggml-${model}.bin -f /tmp/whisper-live.wav --no-timestamps -otxt 2> /tmp/whispererr | tail -n 1
 
     while [ $SECONDS -lt $((($i+1)*$step_s)) ]; do
         sleep 1