mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-18 01:50:19 +08:00
whisper nits (#1388)
This commit is contained in:
@@ -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",
|
||||
|
@@ -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,
|
||||
|
Reference in New Issue
Block a user