Add-Vishnu commited on
Commit
a3f2ade
1 Parent(s): 40fe5f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -15,7 +15,8 @@ def resample_to_16k(audio, orig_sr):
15
  y_resampled = librosa.resample(y=audio, orig_sr=orig_sr, target_sr = 16000)
16
  return y_resampled
17
 
18
- def transcribe(audio,):
 
19
  sr,y = audio
20
  y = y.astype(np.float32)
21
  y /= np.max(np.abs(y))
 
15
  y_resampled = librosa.resample(y=audio, orig_sr=orig_sr, target_sr = 16000)
16
  return y_resampled
17
 
18
+ def transcribe(audio):
19
+ print(type(audio))
20
  sr,y = audio
21
  y = y.astype(np.float32)
22
  y /= np.max(np.abs(y))