Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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(
|
| 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()
|