From 2949b318e7c5ec2709754c949de92f03945c3939 Mon Sep 17 00:00:00 2001 From: Jan Krukowski Date: Fri, 15 Mar 2024 15:16:43 +0100 Subject: [PATCH] update whisperkit cli name --- whisperkit/pipelines.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whisperkit/pipelines.py b/whisperkit/pipelines.py index 28a6f83..e6d6e38 100644 --- a/whisperkit/pipelines.py +++ b/whisperkit/pipelines.py @@ -115,7 +115,7 @@ def clone_repo(self): commit_hash=self.code_commit_hash) def build_cli(self): - self.product_name = "transcribe" + self.product_name = "whisperkit-cli" if subprocess.check_call(f"swift build -c release --product {self.product_name}", cwd=self.repo_dir, shell=True): raise subprocess.CalledProcessError(f"Failed to build {self.product_name}") @@ -181,6 +181,7 @@ def transcribe(self, audio_file_path: str) -> str: cmd = " ".join([ self.cli_path, + "transcribe", "--audio-path", audio_file_path, "--model-path", self.models_dir, "--text-decoder-compute-units", self.compute_unit.value,