From 4a940909993f5fe2620a980bdbcf1d24139b25fd Mon Sep 17 00:00:00 2001 From: Andrew Huynh Date: Mon, 3 Apr 2023 15:35:31 -0700 Subject: [PATCH] bugfix: _state -> state --- crates/spyglass/src/crawler/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/spyglass/src/crawler/mod.rs b/crates/spyglass/src/crawler/mod.rs index d45e32abe..1e113cea7 100644 --- a/crates/spyglass/src/crawler/mod.rs +++ b/crates/spyglass/src/crawler/mod.rs @@ -549,7 +549,7 @@ async fn _process_file( #[cfg(debug_assertions)] let model_path: PathBuf = "assets/models/whisper.base.en.bin".into(); #[cfg(not(debug_assertions))] - let model_path: PathBuf = _state.config.model_dir().join("whisper.base.en.bin"); + let model_path: PathBuf = state.config.model_dir().join("whisper.base.en.bin"); if !model_path.exists() { log::warn!("whisper model not installed, skipping transcription");