DineshJ96 commited on
Commit
0baba61
·
1 Parent(s): dc7a247

app file updated

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -38,7 +38,7 @@ def load_all_models():
38
  print("Loading Pyannote Diarization Pipeline...")
39
  if not HF_TOKEN:
40
  raise ValueError("Hugging Face token (HF_TOKEN) not set. Please set it as a Space secret.")
41
- diarize_pipeline_global = whisperx.DiarizationPipeline(use_auth_token=HF_TOKEN, device=device)
42
 
43
  print("Loading translation model (Helsinki-NLP/opus-mt-ta-en)...")
44
  try:
 
38
  print("Loading Pyannote Diarization Pipeline...")
39
  if not HF_TOKEN:
40
  raise ValueError("Hugging Face token (HF_TOKEN) not set. Please set it as a Space secret.")
41
+ diarize_pipeline_global = whisperx.diarize.DiarizationPipeline(use_auth_token=HF_TOKEN, device=device)
42
 
43
  print("Loading translation model (Helsinki-NLP/opus-mt-ta-en)...")
44
  try: