DrishtiSharma commited on
Commit
9860135
1 Parent(s): 4ed3d6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ MAX_TXT_LEN = 100
68
 
69
  def predict_and_ctc_lm_decode(input_file, speaker_idx: str=None):
70
  speech = load_and_fix_data(input_file, sampling_rate)
71
- transcribed_text = asr(speech, chunk_length_s=5, stride_length_s=1)
72
  transcribed_text = transcribed_text["text"]
73
  inputs = tokenizer([prefix + transcribed_text], return_tensors="pt", padding=True)
74
  with torch.no_grad():
 
68
 
69
  def predict_and_ctc_lm_decode(input_file, speaker_idx: str=None):
70
  speech = load_and_fix_data(input_file, sampling_rate)
71
+ transcribed_text = asr(speech, chunk_length_s=10, stride_length_s=1)
72
  transcribed_text = transcribed_text["text"]
73
  inputs = tokenizer([prefix + transcribed_text], return_tensors="pt", padding=True)
74
  with torch.no_grad():