Skip to content

Commit

Permalink
test: download model before running
Browse files Browse the repository at this point in the history
  • Loading branch information
chidiwilliams committed Mar 14, 2024
1 parent 3e546cc commit eb1d56c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion buzz/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@

from PyQt6.QtCore import QCommandLineParser, QCommandLineOption

from buzz.model_loader import ModelType, WhisperModelSize, TranscriptionModel
from buzz.model_loader import (
ModelType,
WhisperModelSize,
TranscriptionModel,
ModelDownloader,
)
from buzz.store.keyring_store import KeyringStore
from buzz.transcriber.transcriber import (
Task,
Expand Down Expand Up @@ -148,6 +153,7 @@ def parse(app: Application, parser: QCommandLineParser):
whisper_model_size=model_size,
hugging_face_model_id=hugging_face_model_id,
)
ModelDownloader(model=model).run()
model_path = model.get_local_model_path()

if model_path is None:
Expand Down

0 comments on commit eb1d56c

Please sign in to comment.