feat(tray): Modell-Lade-Wartebalken plattformübergreifend anzeigen
Entfernt den Windows-only-Guard in App.__init__, damit der Dialog mit indeterminatem ttk.Progressbar auch unter Linux erscheint, wenn das Laden länger als 500 ms dauert. Ersetzt das literale \u2026 im Label durch das Zeichen … und passt Spec/Plan an den tatsächlichen Umsetzungsstand an (Timeout-basierter Wartebalken statt tqdm-Monkey-Patch, da die Xet-Engine Python-tqdm bypasst). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -31,16 +31,13 @@ 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
|
||||
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(),
|
||||
)
|
||||
|
||||
self.transcriber = Transcriber(
|
||||
model_name=config.whisper_model,
|
||||
|
||||
Reference in New Issue
Block a user