Spaces:
Runtime error
Runtime error
salmanmapkar
commited on
Commit
•
15b45e1
1
Parent(s):
3cdba3e
Update app.py
Browse files
app.py
CHANGED
@@ -141,7 +141,7 @@ def Transcribe_V1(NumberOfSpeakers, SpeakerNames="", audio="temp_audio.wav"):
|
|
141 |
|
142 |
def Transcribe_V2(num_speakers, speaker_names, audio="temp_audio.wav"):
|
143 |
model = whisper.load_model("medium")
|
144 |
-
embedding_model = PyannoteAudioPretrainedSpeakerEmbedding("pyannote/embedding")
|
145 |
# embedding_model = PretrainedSpeakerEmbedding(
|
146 |
# "speechbrain/spkrec-ecapa-voxceleb",
|
147 |
# device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|
|
|
141 |
|
142 |
def Transcribe_V2(num_speakers, speaker_names, audio="temp_audio.wav"):
|
143 |
model = whisper.load_model("medium")
|
144 |
+
embedding_model = PyannoteAudioPretrainedSpeakerEmbedding("pyannote/embedding",use_auth_token="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")
|
145 |
# embedding_model = PretrainedSpeakerEmbedding(
|
146 |
# "speechbrain/spkrec-ecapa-voxceleb",
|
147 |
# device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
|