Bishan commited on
Commit
af2f7e5
1 Parent(s): 2b657ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -12,7 +12,11 @@ def read_file_and_process(wav_file):
12
  filename_16k = filename + "16k.wav"
13
  resampler(wav_file, filename_16k)
14
  speech, _ = sf.read(filename_16k)
 
 
15
  inputs = processor(speech, sampling_rate=16_000, return_tensors="pt", padding=True)
 
 
16
 
17
  return inputs
18
 
 
12
  filename_16k = filename + "16k.wav"
13
  resampler(wav_file, filename_16k)
14
  speech, _ = sf.read(filename_16k)
15
+ print("---------------------------------------------------------")
16
+ print(speech)
17
  inputs = processor(speech, sampling_rate=16_000, return_tensors="pt", padding=True)
18
+ print("---------------------------------------------------------")
19
+ print(inputs)
20
 
21
  return inputs
22