Skip to content

Commit

Permalink
Merge pull request m-bain#586 from remic33/main
Browse files Browse the repository at this point in the history
  • Loading branch information
m-bain authored Nov 17, 2023
2 parents ba30365 + 2016193 commit d97cdb7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
13 changes: 3 additions & 10 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,8 @@
import os
import platform
import pkg_resources
from setuptools import setup, find_packages


def get_pyannote_audio_version():
machine = platform.machine()
system = platform.system()
version = "3.0.0" if machine == "aarch64" or system == "Darwin" else "3.0.1"
return version

import pkg_resources
from setuptools import find_packages, setup

setup(
name="whisperx",
Expand All @@ -28,7 +21,7 @@ def get_pyannote_audio_version():
open(os.path.join(os.path.dirname(__file__), "requirements.txt"))
)
]
+ [f"pyannote.audio=={get_pyannote_audio_version()}"],
+ [f"pyannote.audio==3.1.0"],
entry_points={
"console_scripts": ["whisperx=whisperx.transcribe:cli"],
},
Expand Down
2 changes: 1 addition & 1 deletion whisperx/diarize.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class DiarizationPipeline:
def __init__(
self,
model_name="pyannote/speaker-diarization-3.0",
model_name="pyannote/speaker-diarization-3.1",
use_auth_token=None,
device: Optional[Union[str, torch.device]] = "cpu",
):
Expand Down

0 comments on commit d97cdb7

Please sign in to comment.