Spaces:
Build error
Build error
File size: 537 Bytes
eaa1d55 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
import gradio as gr
from core import download_music
from assets.i18n.i18n import I18nAuto
i18n = I18nAuto()
def download_music_tab():
with gr.Row():
link = gr.Textbox(
label=i18n("Music URL"),
lines=1,
)
output = gr.Textbox(
label=i18n("Output Information"),
info=i18n("The output information will be displayed here."),
)
download = gr.Button(i18n("Download"))
download.click(
download_music,
inputs=[link],
outputs=[output],
)
|