Reihaneh commited on
Commit
e2a53fa
·
1 Parent(s): 2286ed0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -11,7 +11,7 @@ def transcribe(audio):
11
  y = y.astype(np.float32)
12
  y /= np.max(np.abs(y))
13
 
14
- return transcriber({"sampling_rate": 48000, "raw": y})["text"]
15
 
16
 
17
  demo = gr.Interface(
 
11
  y = y.astype(np.float32)
12
  y /= np.max(np.abs(y))
13
 
14
+ return transcriber({"sampling_rate": sr, "raw": y})["text"]
15
 
16
 
17
  demo = gr.Interface(