fix broken example from breaking changes
This commit is contained in:
parent
7a76140d39
commit
e28baf78d4
1 changed files with 2 additions and 2 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
use whisper_rs::{DecodeStrategy, FullParams, WhisperContext};
|
use whisper_rs::{FullParams, SamplingStrategy, WhisperContext};
|
||||||
|
|
||||||
// note that running this example will not do anything, as it is just a
|
// note that running this example will not do anything, as it is just a
|
||||||
// demonstration of how to use the library, and actual usage requires
|
// demonstration of how to use the library, and actual usage requires
|
||||||
|
|
@ -10,7 +10,7 @@ pub fn usage() {
|
||||||
// create a params object
|
// create a params object
|
||||||
// note that currently the only implemented strategy is Greedy, BeamSearch is a WIP
|
// note that currently the only implemented strategy is Greedy, BeamSearch is a WIP
|
||||||
// n_past defaults to 0
|
// n_past defaults to 0
|
||||||
let mut params = FullParams::new(DecodeStrategy::Greedy { n_past: 0 });
|
let mut params = FullParams::new(SamplingStrategy::Greedy { n_past: 0 });
|
||||||
|
|
||||||
// edit things as needed
|
// edit things as needed
|
||||||
// here we set the number of threads to use to 1
|
// here we set the number of threads to use to 1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue