AMM / app.py
Mustafa Al Hamad
Update app.py
6bc2ad2
raw
history blame contribute delete
666 Bytes
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()