Fix pyannote diarize path: use_auth_token -> token
Browse files- 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,
|
| 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 |
|