Download app.py from TF2SA/AMM: direct link, hf CLI and curl.
- Browser
- Download file 666 Bytes
-
https://huggingface.co/spaces/TF2SA/AMM/resolve/main/app.py
- Command line
-
hf download hf://spaces/TF2SA/AMM/app.py
-
curl -L -o app.py https://huggingface.co/spaces/TF2SA/AMM/resolve/main/app.py
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() |