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