Anustup commited on
Commit
faf1c47
1 Parent(s): fb7e4f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="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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
 
 
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