DrishtiSharma commited on
Commit
b8c5e67
1 Parent(s): 62b9ee6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -26,7 +26,7 @@ new_line = '\n'
26
 
27
  def predict_and_ctc_lm_decode(input_file):
28
  speech = load_and_fix_data(input_file, sampling_rate)
29
- transcribed_text = asr(speech, chunk_length_s=5, stride_length_s=1)
30
  transcribed_text = transcribed_text["text"]
31
  input_ids = tokenizer('translate Spanish to Nahuatl: ' + transcribed_text, return_tensors='pt').input_ids
32
  outputs = model.generate(input_ids, max_length=512)
 
26
 
27
  def predict_and_ctc_lm_decode(input_file):
28
  speech = load_and_fix_data(input_file, sampling_rate)
29
+ transcribed_text = asr(speech, chunk_length_s=10, stride_length_s=1)
30
  transcribed_text = transcribed_text["text"]
31
  input_ids = tokenizer('translate Spanish to Nahuatl: ' + transcribed_text, return_tensors='pt').input_ids
32
  outputs = model.generate(input_ids, max_length=512)