Spaces:
Runtime error
Runtime error
liuyang
commited on
Commit
·
baffcb8
1
Parent(s):
f4b8170
try add token
Browse files
app.py
CHANGED
|
@@ -463,7 +463,7 @@ class WhisperTranscriber:
|
|
| 463 |
global _embedder
|
| 464 |
if _embedder is None:
|
| 465 |
# window="whole" to compute one embedding per provided chunk
|
| 466 |
-
_embedder = Inference("pyannote/embedding", window="whole", device=torch.device("cuda"))
|
| 467 |
return _embedder
|
| 468 |
|
| 469 |
def assign_speakers_to_transcription(self, transcription_results, diarization_segments):
|
|
|
|
| 463 |
global _embedder
|
| 464 |
if _embedder is None:
|
| 465 |
# window="whole" to compute one embedding per provided chunk
|
| 466 |
+
_embedder = Inference("pyannote/embedding", window="whole", device=torch.device("cuda"),use_auth_token=os.getenv("HF_TOKEN"),)
|
| 467 |
return _embedder
|
| 468 |
|
| 469 |
def assign_speakers_to_transcription(self, transcription_results, diarization_segments):
|