Skip to content

Commit

Permalink
Make Whisper and Moonshine configs clonable
Browse files Browse the repository at this point in the history
  • Loading branch information
vlovich committed Jan 21, 2025
1 parent 78280f3 commit dcfe136
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/sherpa-rs/src/moonshine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct MoonshineRecognizer {

pub type MoonshineRecognizerResult = super::OfflineRecognizerResult;

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct MoonshineConfig {
pub preprocessor: String,

Expand Down
2 changes: 1 addition & 1 deletion crates/sherpa-rs/src/whisper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct WhisperRecognizer {

pub type WhisperRecognizerResult = super::OfflineRecognizerResult;

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct WhisperConfig {
pub decoder: String,
pub encoder: String,
Expand Down

0 comments on commit dcfe136

Please sign in to comment.