Skip to content

Commit 5ab326d

Browse files
committed
Define alloc func for Whisper::Model
1 parent c436804 commit 5ab326d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bindings/ruby/ext/ruby_whisper_model.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ init_ruby_whisper_model(VALUE *mWhisper)
194194
{
195195
cModel = rb_define_class_under(*mWhisper, "Model", rb_cObject);
196196

197+
rb_define_alloc_func(cModel, ruby_whisper_model_allocate);
197198
rb_define_method(cModel, "n_vocab", ruby_whisper_model_n_vocab, 0);
198199
rb_define_method(cModel, "n_audio_ctx", ruby_whisper_model_n_audio_ctx, 0);
199200
rb_define_method(cModel, "n_audio_state", ruby_whisper_model_n_audio_state, 0);

0 commit comments

Comments
 (0)