File size: 666 Bytes
bffa2b0
18bd3c3
bffa2b0
 
 
d12c1dd
bffa2b0
 
ab199df
bffa2b0
 
92e4b14
 
bffa2b0
92e4b14
 
 
 
 
 
 
bffa2b0
 
6bc2ad2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import gradio as gr
import os
def welcome(name):
    return f"Welcome to Gradio, {name}!"

with gr.Blocks() as demo:
    gr.Markdown(
    """
    # Listen to a sample 🎵!
    Select a sample at the bottom to listen to.
    """)
    inp = gr.Audio(source="",label='Music')
    inp1 = gr.Image(visible=False)
    out = None
    examples = gr.Examples(label='List of samples',examples=[
        [("LastPoint2.mp3"),"SA.jpg"],
        [("5MinutesLeft.mp3"),"SA.jpg"],
        [("Overtime4.mp3"),"SA.jpg"],
        [("AdditionalTimeEnemy.mp3"),"SA.jpg"]
    ],inputs=[inp,inp1])
    inp.change(welcome, [inp,inp1], out)
    
if __name__ == "__main__":
    demo.launch()