rename WhisperContext
This commit is contained in:
parent
6e04f76e41
commit
8b587b97a9
2 changed files with 3 additions and 3 deletions
|
|
@ -23,7 +23,7 @@ pub use standalone::*;
|
||||||
use std::sync::Once;
|
use std::sync::Once;
|
||||||
pub use utilities::*;
|
pub use utilities::*;
|
||||||
use whisper_ctx::WhisperInnerContext;
|
use whisper_ctx::WhisperInnerContext;
|
||||||
pub use whisper_ctx_wrapper::WhisperContextWrapper;
|
pub use whisper_ctx_wrapper::WhisperContext;
|
||||||
pub use whisper_ctx::WhisperContextParameters;
|
pub use whisper_ctx::WhisperContextParameters;
|
||||||
pub use whisper_grammar::{WhisperGrammarElement, WhisperGrammarElementType};
|
pub use whisper_grammar::{WhisperGrammarElement, WhisperGrammarElementType};
|
||||||
pub use whisper_params::{FullParams, SamplingStrategy};
|
pub use whisper_params::{FullParams, SamplingStrategy};
|
||||||
|
|
|
||||||
|
|
@ -3,11 +3,11 @@ use std::sync::Arc;
|
||||||
|
|
||||||
use crate::{WhisperInnerContext, WhisperContextParameters, WhisperError, WhisperState, WhisperToken};
|
use crate::{WhisperInnerContext, WhisperContextParameters, WhisperError, WhisperState, WhisperToken};
|
||||||
|
|
||||||
pub struct WhisperContextWrapper {
|
pub struct WhisperContext {
|
||||||
ctx: Arc<WhisperInnerContext>,
|
ctx: Arc<WhisperInnerContext>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl WhisperContextWrapper {
|
impl WhisperContext {
|
||||||
fn wrap(ctx: WhisperInnerContext) -> Self {
|
fn wrap(ctx: WhisperInnerContext) -> Self {
|
||||||
Self {
|
Self {
|
||||||
ctx: Arc::new(ctx),
|
ctx: Arc::new(ctx),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue