]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
main : fix generated bash script
authorGeorgi Gerganov <redacted>
Fri, 4 Nov 2022 16:30:38 +0000 (18:30 +0200)
committerGeorgi Gerganov <redacted>
Fri, 4 Nov 2022 16:30:38 +0000 (18:30 +0200)
examples/main/main.cpp

index b58945998e938fbaa1af3e194a204675c444456f..5907e0b90136a84b74dc9d3051a7c6910a548689 100644 (file)
@@ -313,7 +313,7 @@ bool output_wts(struct whisper_context * ctx, const char * fname, const char * f
     // TODO: become parameter
     static const char * font = "/System/Library/Fonts/Supplemental/Courier New Bold.ttf";
 
-    fout << "!/bin/bash" << "\n";
+    fout << "#!/bin/bash" << "\n";
     fout << "\n";
 
     fout << "ffmpeg -i " << fname_inp << " -f lavfi -i color=size=1200x120:duration=" << t_sec << ":rate=25:color=black -vf \"";