Spaces:
Sleeping
Sleeping
app file updated
Browse files
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:
|