Spaces:
Runtime error
Runtime error
File size: 417 Bytes
de811b0 adc6d8b be980dd e555ad1 7c61b22 e555ad1 7c61b22 e555ad1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
def process_speech(audio):
return f"""audio {audio}
type {type(audio)}"""
with gr.Blocks(theme='ParityError/Anime') as iface :
audio_input = gr.Audio(label="talk in french")
audio_output = gr.Markdown(label="output text")
audio_button = gr.Button("process audio")
audio_button.click(process_speech, inputs=audio_input, outputs=audio_output)
iface.launch(show_error=True) |