Skip to content

Commit 2051087

Browse files
committed
Fix examples in README
1 parent 8f3f43e commit 2051087

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

bindings/ruby/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ You can see model information:
113113
whisper = Whisper::Context.new("path/to/model.bin")
114114
model = whisper.model
115115

116-
model.n_vocab # 51864
116+
model.n_vocab # => 51864
117117
model.n_audio_ctx # => 1500
118118
model.n_audio_state # => 512
119119
model.n_audio_head # => 8
@@ -134,17 +134,17 @@ You can set log callback:
134134
prefix = "[MyApp] "
135135
log_callback = ->(level, buffer, user_data) {
136136
case level
137-
when Whisper::LOG_LEVEL::NONE
137+
when Whisper::LOG_LEVEL_NONE
138138
puts "#{user_data}none: #{buffer}"
139-
when Whisper::LOG_LEVEL::INFO
139+
when Whisper::LOG_LEVEL_INFO
140140
puts "#{user_data}info: #{buffer}"
141-
when Whisper::LOG_LEVEL::WARN
141+
when Whisper::LOG_LEVEL_WARN
142142
puts "#{user_data}warn: #{buffer}"
143-
when Whisper::LOG_LEVEL::ERROR
143+
when Whisper::LOG_LEVEL_ERROR
144144
puts "#{user_data}error: #{buffer}"
145-
when Whisper::LOG_LEVEL::DEBUG
145+
when Whisper::LOG_LEVEL_DEBUG
146146
puts "#{user_data}debug: #{buffer}"
147-
when Whisper::LOG_LEVEL::CONT
147+
when Whisper::LOG_LEVEL_CONT
148148
puts "#{user_data}same to previous: #{buffer}"
149149
end
150150
}

0 commit comments

Comments
 (0)