]> git.djapps.eu Git - pkg/ggml/sources/whisper.cpp/commitdiff
ruby : fix the instructions (#2548)
authorWilson Silva <redacted>
Wed, 13 Nov 2024 19:47:42 +0000 (19:47 +0000)
committerGitHub <redacted>
Wed, 13 Nov 2024 19:47:42 +0000 (21:47 +0200)
#prompt doesn't exist but #initial_prompt does

bindings/ruby/README.md

index 928fe6626e962060669991f6a629d4e7fc15c323..a63e833313acfc65276b032bd8171b3c7bb2761a 100644 (file)
@@ -31,7 +31,7 @@ params.duration = 60_000
 params.max_text_tokens = 300
 params.translate = true
 params.print_timestamps = false
-params.prompt = "Initial prompt here."
+params.initial_prompt = "Initial prompt here."
 
 whisper.transcribe("path/to/audio.wav", params) do |whole_text|
   puts whole_text