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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# Copyright © 2023-2024 Apple Inc.
from ._version import __version__
from .utils import convert, generate, load, stream_generate
from .version import __version__

View File

@ -10,7 +10,7 @@ with open(package_dir / "requirements.txt") as fid:
requirements = [l.strip() for l in fid.readlines()]
sys.path.append(str(package_dir))
from version import __version__
from _version import __version__
setup(
name="mlx-lm",

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",