Spaces:
Runtime error
Runtime error
import os | |
import gradio as gr | |
# Define the Gradio Interface | |
with gr.Blocks(theme="NoCrypt/[email protected]") as demo: | |
gr.Markdown("# Audio Separator Gradio demo") | |
with gr.Row(): | |
with gr.Column(): | |
link_input = gr.Textbox(label="Enter Audio/Video Link") | |
separate_button = gr.Button("Download and Separate Audio") | |
with gr.Column(): | |
with gr.Accordion("Instrumental and Vocal output"): | |
instrumental_output = gr.Audio(label="Instrumental Output") | |
vocals_output = gr.Audio(label="Vocals Output") | |
with gr.Accordion("Reverb output"): | |
vocals_no_reverb_output = gr.Audio(label="Vocals No Reverb Output") | |
vocals_reverb_output = gr.Audio(label="Vocals Reverb Output") | |
lead_vocals_output = gr.Audio(label="Lead Vocals Output") | |
backing_vocals_output = gr.Audio(label="Backing Vocals Output") | |
# Define button functionality | |
# separate_button.click( | |
# separate_audio_from_link, | |
# inputs=[link_input], | |
# outputs=[ | |
# instrumental_output, | |
# vocals_output, | |
# vocals_no_reverb_output, | |
# vocals_reverb_output, | |
# lead_vocals_output, | |
# backing_vocals_output | |
# ] | |
# ) | |
# Launch the Gradio app | |
demo.launch(debug=True) |