STBack23 commited on
Commit
3700132
·
verified ·
1 Parent(s): ec4c3a5

Fix pyannote diarize path: use_auth_token -> token

Browse files
Files changed (1) hide show
  1. src/omnisub/diarize.py +1 -1
src/omnisub/diarize.py CHANGED
@@ -47,7 +47,7 @@ def diarize_audio(
47
  "Bước 2 cần `pyannote.audio` + `torch`. Cài qua requirements-colab.txt."
48
  ) from e
49
 
50
- pipeline = Pipeline.from_pretrained(model_name, use_auth_token=hf_token)
51
  if torch.cuda.is_available():
52
  pipeline.to(torch.device("cuda"))
53
 
 
47
  "Bước 2 cần `pyannote.audio` + `torch`. Cài qua requirements-colab.txt."
48
  ) from e
49
 
50
+ pipeline = Pipeline.from_pretrained(model_name, token=hf_token)
51
  if torch.cuda.is_available():
52
  pipeline.to(torch.device("cuda"))
53