audiotest / app.py
Hannah
test
c213e8f
raw
history blame
325 Bytes
import os
import gradio as gr
audio_file = os.path.join(os.path.dirname(__file__), "new-sax-1.mp3")
with gr.Blocks() as demo:
audio = gr.Audio(show_share_button=True)
btn = gr.Button()
audio2 = gr.Audio(show_share_button=True)
btn.click(fn=lambda x: x, inputs=audio, outputs=audio2)
demo.queue().launch()