Update app.py
Browse files
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":
|
| 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 = []
|