Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,8 @@ import gradio as gr
|
|
4 |
model = EncoderASR.from_hparams("speechbrain/asr-wav2vec2-dvoice-wolof")
|
5 |
|
6 |
def transcribe(audio):
|
7 |
-
|
|
|
8 |
|
9 |
demo = gr.Interface(
|
10 |
fn=transcribe,
|
|
|
4 |
model = EncoderASR.from_hparams("speechbrain/asr-wav2vec2-dvoice-wolof")
|
5 |
|
6 |
def transcribe(audio):
|
7 |
+
audio_file_path = audio[0]
|
8 |
+
return model.transcribe_file(audio_file_path)
|
9 |
|
10 |
demo = gr.Interface(
|
11 |
fn=transcribe,
|