Skip to content

Commit

Permalink
Merge pull request #101 from codesoda/grammar-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 authored Nov 24, 2023
2 parents 2a17add + a07e27e commit 1ad60ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ pub use standalone::*;
pub use utilities::*;
pub use whisper_ctx::WhisperContext;
pub use whisper_ctx::WhisperContextParameters;
pub use whisper_grammar::{WhisperGrammarElement, WhisperGrammarElementType};
pub use whisper_params::{FullParams, SamplingStrategy};
pub use whisper_state::WhisperState;

Expand Down
2 changes: 1 addition & 1 deletion src/whisper_ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ impl WhisperContextParameters {
pub fn new() -> Self {
Self::default()
}
pub fn use_gpu(mut self, use_gpu: bool) -> Self {
pub fn use_gpu(&mut self, use_gpu: bool) -> &mut Self {
self.use_gpu = use_gpu;
self
}
Expand Down

0 comments on commit 1ad60ec

Please sign in to comment.