From 26ca6e3b3382ce26c2c7b34220cac1e3b477390f Mon Sep 17 00:00:00 2001 From: Joe Corall Date: Thu, 19 Sep 2024 09:23:14 -0400 Subject: [PATCH] fixup cmd --- examples/whisper/cmd.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/whisper/cmd.sh b/examples/whisper/cmd.sh index 9ea31ab..7c1f743 100755 --- a/examples/whisper/cmd.sh +++ b/examples/whisper/cmd.sh @@ -8,11 +8,12 @@ input_temp=$(mktemp /tmp/whisper-input-XXXXXX) cat > "$input_temp" -libreoffice --headless --convert-to pdf "$input_temp" > /dev/null 2>&1 - /app/main \ -m /app/models/ggml-base.en.bin \ --output-vtt \ - -f "$input_temp" 2>&1 + -f "$input_temp" \ + --output-file "$input_temp.vtt" > /dev/null 2>&1 + +cat "$input_temp.vtt" -rm "$input_temp" +rm "$input_temp" "$input_temp.vtt"