Mihaj commited on
Commit
c4a41bc
·
verified ·
1 Parent(s): 0f9c96a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,7 +19,7 @@ channels = 1
19
 
20
  model_name = "Mihaj/wav2vec2-large-xls-r-300m-ruOH-alphav"
21
  bond005_model = "bond005/wav2vec2-large-ru-golos-with-lm"
22
- processor = Wav2Vec2ProcessorWithLM.from_pretrained(bond005_model)
23
  model = Wav2Vec2ForCTC.from_pretrained(bond005_model)
24
  pipe = pipeline("automatic-speech-recognition", model=model, tokenizer=processor, feature_extractor=processor.feature_extractor, decoder=processor.decoder)
25
  model = load_silero_vad()
 
19
 
20
  model_name = "Mihaj/wav2vec2-large-xls-r-300m-ruOH-alphav"
21
  bond005_model = "bond005/wav2vec2-large-ru-golos-with-lm"
22
+ processor = Wav2Vec2ProcessorWithLM.from_pretrained(model_name)
23
  model = Wav2Vec2ForCTC.from_pretrained(bond005_model)
24
  pipe = pipeline("automatic-speech-recognition", model=model, tokenizer=processor, feature_extractor=processor.feature_extractor, decoder=processor.decoder)
25
  model = load_silero_vad()