DrishtiSharma commited on
Commit
ceeab94
1 Parent(s): 619b35a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,10 +12,10 @@ def load_and_fix_data(input_file, model_sampling_rate):
12
  return speech
13
 
14
 
15
- feature_extractor = AutoFeatureExtractor.from_pretrained("jonatasgrosman/wav2vec2-large-xlsr-53-spanish")
16
  sampling_rate = feature_extractor.sampling_rate
17
 
18
- asr = pipeline("automatic-speech-recognition", model="jonatasgrosman/wav2vec2-large-xlsr-53-spanish")
19
 
20
 
21
  def predict_and_ctc_lm_decode(input_file):
 
12
  return speech
13
 
14
 
15
+ feature_extractor = AutoFeatureExtractor.from_pretrained("jonatasgrosman/wav2vec2-xls-r-1b-spanish")
16
  sampling_rate = feature_extractor.sampling_rate
17
 
18
+ asr = pipeline("automatic-speech-recognition", model="jonatasgrosman/wav2vec2-xls-r-1b-spanish")
19
 
20
 
21
  def predict_and_ctc_lm_decode(input_file):