From faf9ac4c8bcf42560bf982a61862e9094ec59310 Mon Sep 17 00:00:00 2001 From: Vitali Graf Date: Sun, 12 Apr 2026 12:33:37 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20App=20l=C3=A4dt=20Whisper-Modell=20auf?= =?UTF-8?q?=20Windows=20mit=20Fortschrittsdialog?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- whisper_local/__main__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/whisper_local/__main__.py b/whisper_local/__main__.py index f45a938..5d489c5 100644 --- a/whisper_local/__main__.py +++ b/whisper_local/__main__.py @@ -30,10 +30,22 @@ class App: min_duration=config.min_duration, device=config.microphone or None, ) + if sys.platform == "win32": + from whisper_local.tray._download_progress import load_model_with_progress + from whisper_local.transcriber import _model_cache_dir + _preloaded_model = load_model_with_progress( + model_name=config.whisper_model, + compute_type=config.compute_type, + download_root=_model_cache_dir(), + ) + else: + _preloaded_model = None + self.transcriber = Transcriber( model_name=config.whisper_model, compute_type=config.compute_type, language=config.language, + model=_preloaded_model, ) self.inserter = create_inserter() self.hotkey = create_listener(key_name=config.hotkey)