File size: 1,360 Bytes
b02866c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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)