Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ def speech_to_text(audio):
|
|
| 27 |
# Create the Gradio interface
|
| 28 |
iface = gr.Interface(
|
| 29 |
fn=speech_to_text,
|
| 30 |
-
inputs=gr.Audio(
|
| 31 |
outputs=gr.Textbox(),
|
| 32 |
title="Chinese Speech Recognition",
|
| 33 |
description="Upload an audio file and get the transcribed text using the wav2vec2-large-xlsr-53-chinese-zh-cn model."
|
|
|
|
| 27 |
# Create the Gradio interface
|
| 28 |
iface = gr.Interface(
|
| 29 |
fn=speech_to_text,
|
| 30 |
+
inputs=gr.Audio(type="filepath"),
|
| 31 |
outputs=gr.Textbox(),
|
| 32 |
title="Chinese Speech Recognition",
|
| 33 |
description="Upload an audio file and get the transcribed text using the wav2vec2-large-xlsr-53-chinese-zh-cn model."
|