Upload folder using huggingface_hub
Browse files- asr_diarization/pipeline.py +3 -1
- requirements.txt +6 -4
asr_diarization/pipeline.py
CHANGED
|
@@ -40,7 +40,9 @@ class ASR_Diarization:
|
|
| 40 |
self.embedding_model = None
|
| 41 |
print(f"[ERROR] Failed to load ECAPA: {e}")
|
| 42 |
|
| 43 |
-
self.diar_pipeline = Pipeline.from_pretrained(diar_model, use_auth_token=
|
|
|
|
|
|
|
| 44 |
device_index = 0 if torch.cuda.is_available() else -1
|
| 45 |
self.asr_pipeline = hf_pipeline(
|
| 46 |
"automatic-speech-recognition",
|
|
|
|
| 40 |
self.embedding_model = None
|
| 41 |
print(f"[ERROR] Failed to load ECAPA: {e}")
|
| 42 |
|
| 43 |
+
self.diar_pipeline = Pipeline.from_pretrained(diar_model, use_auth_token=None)
|
| 44 |
+
diar_model="pyannote/speaker-diarization-3.1"
|
| 45 |
+
|
| 46 |
device_index = 0 if torch.cuda.is_available() else -1
|
| 47 |
self.asr_pipeline = hf_pipeline(
|
| 48 |
"automatic-speech-recognition",
|
requirements.txt
CHANGED
|
@@ -1,8 +1,10 @@
|
|
| 1 |
-
torch
|
| 2 |
-
torchaudio
|
| 3 |
-
pyannote.audio
|
| 4 |
-
transformers
|
|
|
|
| 5 |
noisereduce
|
| 6 |
scikit-learn
|
| 7 |
jiwer
|
| 8 |
librosa
|
|
|
|
|
|
| 1 |
+
torch>=2.3.0
|
| 2 |
+
torchaudio>=2.3.0
|
| 3 |
+
pyannote.audio==3.1.1
|
| 4 |
+
transformers>=4.41.0
|
| 5 |
+
huggingface_hub>=0.24.0
|
| 6 |
noisereduce
|
| 7 |
scikit-learn
|
| 8 |
jiwer
|
| 9 |
librosa
|
| 10 |
+
speechbrain
|