diff options
-rw-r--r-- | candle-examples/examples/whisper/main.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/candle-examples/examples/whisper/main.rs b/candle-examples/examples/whisper/main.rs index 74b02e64..4788385b 100644 --- a/candle-examples/examples/whisper/main.rs +++ b/candle-examples/examples/whisper/main.rs @@ -283,13 +283,16 @@ enum WhichModel { Medium, #[value(name = "medium.en")] MediumEn, + Large, LargeV2, } impl WhichModel { fn is_multilingual(&self) -> bool { match self { - Self::Tiny | Self::Base | Self::Small | Self::Medium | Self::LargeV2 => true, + Self::Tiny | Self::Base | Self::Small | Self::Medium | Self::Large | Self::LargeV2 => { + true + } Self::TinyEn | Self::BaseEn | Self::SmallEn | Self::MediumEn => false, } } @@ -301,8 +304,9 @@ impl WhichModel { Self::BaseEn => ("openai/whisper-base.en", "refs/pr/13"), Self::Small => ("openai/whisper-small", "main"), Self::SmallEn => ("openai/whisper-small.en", "refs/pr/10"), - Self::Medium => ("openai/whisper-medium", "refs/pr/21"), - Self::MediumEn => ("openai/whisper-medium.en", "refs/pr/11"), + Self::Medium => ("openai/whisper-medium", "main"), + Self::MediumEn => ("openai/whisper-medium.en", "main"), + Self::Large => ("openai/whisper-large", "refs/pr/36"), Self::LargeV2 => ("openai/whisper-large-v2", "refs/pr/57"), } } |