Skip to content

Commit

Permalink
fix: fix HF token usage in SpeechBrain interface
Browse files Browse the repository at this point in the history
  • Loading branch information
hbredin committed Feb 4, 2025
1 parent 74705e9 commit 912ef14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyannote/audio/pipelines/speaker_verification.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def __init__(
source=self.embedding,
savedir=f"{self.cache_dir}/speechbrain",
run_opts={"device": self.device},
token=self.token,
use_auth_token=self.token,
huggingface_cache_dir=self.cache_dir,
revision=self.revision,
)
Expand All @@ -271,7 +271,7 @@ def to(self, device: torch.device):
source=self.embedding,
savedir=f"{self.cache_dir}/speechbrain",
run_opts={"device": device},
token=self.token,
use_auth_token=self.token,
huggingface_cache_dir=self.cache_dir,
revision=self.revision,
)
Expand Down

0 comments on commit 912ef14

Please sign in to comment.