Spaces:
Runtime error
Runtime error
File size: 439 Bytes
228eb99 22488de cfb356d 22488de 228eb99 22488de 228eb99 22488de 228eb99 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import gradio as gr
def identity(audio):
print(audio)
return audio
with gr.Blocks() as demo:
with gr.Row():
with gr.Column():
audio_in = gr.Audio(sources=["microphone"], type="filepath")
run_button = gr.Button("Generate audio")
with gr.Column():
audio_out = gr.Audio(type="filepath")
run_button.click(fn=identity, inputs=[audio_in], outputs=[audio_out])
demo.launch() |