Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ def transcribe(audio):
|
|
12 |
if sr != 16000:
|
13 |
y = librosa.resample(y, orig_sr=sr, target_sr=16000)
|
14 |
|
15 |
-
return transcriber({"sampling_rate":
|
16 |
|
17 |
|
18 |
demo = gr.Interface(
|
|
|
12 |
if sr != 16000:
|
13 |
y = librosa.resample(y, orig_sr=sr, target_sr=16000)
|
14 |
|
15 |
+
return transcriber({"sampling_rate": 16000, "raw": y})["text"]
|
16 |
|
17 |
|
18 |
demo = gr.Interface(
|