Whisper: Support command line (#746)

* Whisper: Add CLI command

* Whisper: Prevent precision loss when converting to words dictionary

* Whisper: disable json ensure_ascii

* Whisper: add cli setup config

* Whisper: pre-commit

* Whisper: Adjust the _ in the command line arguments to -

* nits

* version + readme

* nit

---------

Co-authored-by: Awni Hannun <awni@apple.com>
This commit is contained in:
madroid
2024-08-17 01:35:44 +08:00
committed by GitHub
parent 4e01700816
commit e196fa3208
6 changed files with 531 additions and 2 deletions

View File

@@ -29,4 +29,9 @@ setup(
packages=find_namespace_packages(),
include_package_data=True,
python_requires=">=3.8",
entry_points={
"console_scripts": [
"mlx_whisper = mlx_whisper.cli:main",
]
},
)