whisper nits (#1388)

This commit is contained in:
Awni Hannun
2025-09-03 13:18:50 -07:00
committed by GitHub
parent c1af8c46bd
commit 8e4391ca21
2 changed files with 1 additions and 7 deletions

View File

@@ -11,12 +11,6 @@ audio_file = "mlx_whisper/assets/ls_test.flac"
def parse_arguments():
parser = argparse.ArgumentParser(description="Benchmark script.")
parser.add_argument(
"--mlx-dir",
type=str,
default="mlx_models",
help="The folder of MLX models",
)
parser.add_argument(
"--all",
action="store_true",

View File

@@ -62,7 +62,7 @@ class ModelHolder:
def transcribe(
audio: Union[str, np.ndarray, mx.array],
*,
path_or_hf_repo: str = "mlx-community/whisper-tiny",
path_or_hf_repo: str = "mlx-community/whisper-turbo",
verbose: Optional[bool] = None,
temperature: Union[float, Tuple[float, ...]] = (0.0, 0.2, 0.4, 0.6, 0.8, 1.0),
compression_ratio_threshold: Optional[float] = 2.4,