import gradio as gr import requests AUDIO_URL = "https://huggingface.co/spaces/Namazlol/Udoe/resolve/main/mysong.mp3" def download_audio(): response = requests.get(AUDIO_URL) with open("mysong.mp3", "wb") as f: f.write(response.content) return "mysong.mp3" demo = gr.Interface( fn=download_audio, inputs=[], outputs=gr.Audio(type="filepath"), title="Audio Player", description="Click play to listen to the song." ) demo.launch()