audiotest / app.py
Hannah
app tweak
6ea9b5d
raw
history blame
303 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()
btn = gr.Button()
audio2 = gr.Audio(show_share_button=True)
btn.click(fn=lambda x: x, inputs=audio, outputs=audio2)
demo.queue().launch()