Make sure to import the correct "version" module when installing mlx_whisper and mlx_lm from local source code. (#969)

* Make sure to import the correct "version" module when installing the
mlx_whisper package from local source code.

* Make sure to import the correct "version" module when installing the mlx_lm package from local source code

* fix

---------

Co-authored-by: Awni Hannun <awni@apple.com>
This commit is contained in:
James Zhao
2024-09-03 23:16:21 +03:00
committed by GitHub
parent 3c6e8b11af
commit bf921afcbe
6 changed files with 4 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
# Copyright © 2023-2024 Apple Inc.
from . import audio, decoding, load_models
from ._version import __version__
from .transcribe import transcribe
from .version import __version__

View File

@@ -12,7 +12,7 @@ with open(package_dir / "requirements.txt") as fid:
sys.path.append(str(package_dir))
from version import __version__
from _version import __version__
setup(
name="mlx-whisper",