badrex commited on
Commit
2fb4363
·
verified ·
1 Parent(s): 5b7288e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def transcribe(audio):
20
  y = y.mean(axis=1)
21
  y = y.astype(np.float32)
22
  y /= np.max(np.abs(y))
23
- return transcriber({"sampling_rate": sr, "raw": y})["text"]
24
 
25
 
26
  examples = []
 
20
  y = y.mean(axis=1)
21
  y = y.astype(np.float32)
22
  y /= np.max(np.abs(y))
23
+ return transcriber({"sampling_rate": 16000, "raw": y})["text"]
24
 
25
 
26
  examples = []