Capstone04 commited on
Commit
5349d0e
·
verified ·
1 Parent(s): bb1565e

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. README.md +1 -1
  2. asr_diarization/pipeline.py +4 -1
README.md CHANGED
@@ -13,7 +13,7 @@ This package provides an **Automatic Speech Recognition (ASR) + Speaker Diarizat
13
 
14
  ## Install
15
  ```bash
16
- pip install git+https://huggingface.co/Capstone04/asr-diarization-pipeline
17
 
18
  ## Speaker Identification
19
  You can now enroll known speakers by providing reference audio samples. The pipeline will match incoming speaker segments against stored embeddings and label them accordingly. Unknown speakers are dynamically tracked per session.
 
13
 
14
  ## Install
15
  ```bash
16
+ pip install git+https://huggingface.co/Capstone04/live-transcription-pipeline
17
 
18
  ## Speaker Identification
19
  You can now enroll known speakers by providing reference audio samples. The pipeline will match incoming speaker segments against stored embeddings and label them accordingly. Unknown speakers are dynamically tracked per session.
asr_diarization/pipeline.py CHANGED
@@ -40,7 +40,10 @@ 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=HF_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=HF_TOKEN)
44
+ os.environ["HF_TOKEN"] = HF_TOKEN
45
+ os.environ["HF_HUB_ENABLE_HF_TRANSFER"] = "1"
46
+ self.diar_pipeline = Pipeline.from_pretrained(diar_model)
47
  device_index = 0 if torch.cuda.is_available() else -1
48
  self.asr_pipeline = hf_pipeline(
49
  "automatic-speech-recognition",