Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

Merge pull request #2747 from yashranaway/fix/trim-transcription

Richie McIlroy7985b303ccd5
diff --cc apps/desktop-gpui/src/transcription.rs
index 0f7351a20,dc6330030..8a7b12986
--- a/apps/desktop-gpui/src/transcription.rs
+++ b/apps/desktop-gpui/src/transcription.rs
@@@ -1775,10 -1639,12 +1648,12 @@@ pub fn transcribe_blocking
project_path: &Path,
model: &str,
language: &str,
+ timeline: Option<&TimelineConfiguration>,
+ recording_durations: &[f64],
) -> Result<Vec<CaptionSegment>, String> {
let requested = model;
- // A download writes straight to the model's final path, so a model still
- // downloading looks present but cannot load yet.
+ // A model being downloaded should not be selected as a fallback, even
+ // if an older copy still exists at its final path.
let model = transcription_model(model, language, |model| {
model_files_present(model) && !hub().downloading(model)
})?;