Spaces:
Runtime error
Runtime error
Update app.py
Browse files
@misc
{grosman2021xlsr53-large-german,
title={Fine-tuned {XLSR}-53 large model for speech recognition in {G}erman},
author={Grosman, Jonatas},
howpublished={\url{https://huggingface.co/jonatasgrosman/wav2vec2-large-xlsr-53-german}},
year={2021}
}
app.py
CHANGED
@@ -12,7 +12,8 @@ def transcribe(audio_path : str) -> str:
|
|
12 |
|
13 |
demo = gr.Interface(
|
14 |
fn=transcribe,
|
15 |
-
inputs=
|
|
|
16 |
outputs="text"
|
17 |
)
|
18 |
|
|
|
12 |
|
13 |
demo = gr.Interface(
|
14 |
fn=transcribe,
|
15 |
+
inputs=gr.inputs.Audio(label="Upload audio file", type="filepath")
|
16 |
+
# inputs=[gr.inputs.Audio(label="Upload audio file", type="filepath"), "microphone"],
|
17 |
outputs="text"
|
18 |
)
|
19 |
|