Harveenchadha commited on
Commit
69a550c
1 Parent(s): 798174a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def parse_transcription_with_lm(wav_file):
46
 
47
  def read_file_and_process(wav_file):
48
  filename = wav_file.split('.')[0]
49
- convert(wav_file, filename + "16k.wav")
50
  speech, _ = sf.read(filename + "16k.wav")
51
  inputs = processor(speech, sampling_rate=16_000, return_tensors="pt", padding=True)
52
 
 
46
 
47
  def read_file_and_process(wav_file):
48
  filename = wav_file.split('.')[0]
49
+ resampler(wav_file, filename + "16k.wav")
50
  speech, _ = sf.read(filename + "16k.wav")
51
  inputs = processor(speech, sampling_rate=16_000, return_tensors="pt", padding=True)
52