File size: 303 Bytes
c213e8f
 
 
 
 
 
f73b066
c213e8f
f73b066
 
 
 
c213e8f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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()