Spaces:
Runtime error
Runtime error
import gradio as gr | |
def identity(audio): | |
return audio, 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") | |
path_out = gr.Textbox(label="audio filepath") | |
run_button.click(fn=identity, inputs=[audio_in], outputs=[audio_out, path_out]) | |
demo.launch() |