rename WhisperContext

This commit is contained in:
jiahua 2024-04-25 16:01:20 +08:00
parent 6e04f76e41
commit 8b587b97a9
2 changed files with 3 additions and 3 deletions

View file

@ -23,7 +23,7 @@ pub use standalone::*;
use std::sync::Once;
pub use utilities::*;
use whisper_ctx::WhisperInnerContext;
pub use whisper_ctx_wrapper::WhisperContextWrapper;
pub use whisper_ctx_wrapper::WhisperContext;
pub use whisper_ctx::WhisperContextParameters;
pub use whisper_grammar::{WhisperGrammarElement, WhisperGrammarElementType};
pub use whisper_params::{FullParams, SamplingStrategy};

View file

@ -3,11 +3,11 @@ use std::sync::Arc;
use crate::{WhisperInnerContext, WhisperContextParameters, WhisperError, WhisperState, WhisperToken};
pub struct WhisperContextWrapper {
pub struct WhisperContext {
ctx: Arc<WhisperInnerContext>,
}
impl WhisperContextWrapper {
impl WhisperContext {
fn wrap(ctx: WhisperInnerContext) -> Self {
Self {
ctx: Arc::new(ctx),