Skip to content

Commit

Permalink
fixup cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
joecorall committed Sep 19, 2024
1 parent 56fe351 commit 26ca6e3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions examples/whisper/cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 26ca6e3

Please sign in to comment.