diff options
author | Laurent Mazare <laurent.mazare@gmail.com> | 2024-10-02 22:09:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-02 22:09:14 +0200 |
commit | 90d04ff622e14233d0b0902cd2ab193070369c22 (patch) | |
tree | 9b98db333159c0f0e61aaa784812218508306c9a /candle-examples | |
parent | 7b60bda4ed8c9d861396fe74307d6c77281522ef (diff) | |
download | candle-90d04ff622e14233d0b0902cd2ab193070369c22.tar.gz candle-90d04ff622e14233d0b0902cd2ab193070369c22.tar.bz2 candle-90d04ff622e14233d0b0902cd2ab193070369c22.zip |
Support whisper large-v3 turbo in the whisper-microphone example. (#2533)
Diffstat (limited to 'candle-examples')
-rw-r--r-- | candle-examples/examples/whisper-microphone/main.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/candle-examples/examples/whisper-microphone/main.rs b/candle-examples/examples/whisper-microphone/main.rs index 44a64b05..5165da1c 100644 --- a/candle-examples/examples/whisper-microphone/main.rs +++ b/candle-examples/examples/whisper-microphone/main.rs @@ -389,6 +389,7 @@ enum WhichModel { Large, LargeV2, LargeV3, + LargeV3Turbo, #[value(name = "distil-medium.en")] DistilMediumEn, #[value(name = "distil-large-v2")] @@ -405,6 +406,7 @@ impl WhichModel { | Self::Large | Self::LargeV2 | Self::LargeV3 + | Self::LargeV3Turbo | Self::DistilLargeV2 => true, Self::TinyEn | Self::BaseEn | Self::SmallEn | Self::MediumEn | Self::DistilMediumEn => { false @@ -425,6 +427,7 @@ impl WhichModel { Self::Large => ("openai/whisper-large", "refs/pr/36"), Self::LargeV2 => ("openai/whisper-large-v2", "refs/pr/57"), Self::LargeV3 => ("openai/whisper-large-v3", "main"), + Self::LargeV3Turbo => ("openai/whisper-large-v3-turbo", "main"), Self::DistilMediumEn => ("distil-whisper/distil-medium.en", "main"), Self::DistilLargeV2 => ("distil-whisper/distil-large-v2", "main"), } |