Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
|