Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,8 @@ device = 0 if torch.cuda.is_available() else "cpu"
|
|
14 |
SAMPLE_RATE = 16_000
|
15 |
|
16 |
######## LOAD MODELS FROM HUB ########
|
17 |
-
dia_model = Pipeline.from_pretrained("pyannote/speaker-diarization", use_auth_token="
|
18 |
-
vad_model = Pipeline.from_pretrained("pyannote/voice-activity-detection", use_auth_token="
|
19 |
pipe = pipeline(task="automatic-speech-recognition", model=MODEL_NAME, chunk_length_s=chunk_length_s, device=device)
|
20 |
pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language=lang, task="transcribe")
|
21 |
|
|
|
14 |
SAMPLE_RATE = 16_000
|
15 |
|
16 |
######## LOAD MODELS FROM HUB ########
|
17 |
+
dia_model = Pipeline.from_pretrained("pyannote/speaker-diarization", use_auth_token="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")
|
18 |
+
vad_model = Pipeline.from_pretrained("pyannote/voice-activity-detection", use_auth_token="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")
|
19 |
pipe = pipeline(task="automatic-speech-recognition", model=MODEL_NAME, chunk_length_s=chunk_length_s, device=device)
|
20 |
pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(language=lang, task="transcribe")
|
21 |
|