Spaces:
Sleeping
Sleeping
File size: 417 Bytes
57bfa8d |
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) |