mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-24 01:17:28 +08:00
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:
parent
3c6e8b11af
commit
bf921afcbe
@ -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__
|
||||
|
@ -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",
|
||||
|
@ -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__
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user