Update app.py
Browse files
app.py
CHANGED
@@ -32,6 +32,8 @@ def split_process(audio, chosen_out_track):
|
|
32 |
return "./out/mdx_extra_q/test/drums.wav"
|
33 |
elif chosen_out_track == "other":
|
34 |
return "./out/mdx_extra_q/test/other.wav"
|
|
|
|
|
35 |
|
36 |
def load_model(version):
|
37 |
print("Loading model", version)
|
@@ -97,7 +99,7 @@ with gr.Blocks(css=css) as demo:
|
|
97 |
|
98 |
with gr.Column():
|
99 |
uploaded_sound = gr.Audio(type="numpy", label="Input", source="upload")
|
100 |
-
chosen_track = gr.Radio(["vocals", "bass", "drums", "other"], label="Track", info="Which track from your audio do you want to mashup ?", value="vocals")
|
101 |
load_sound_btn = gr.Button('Load your sound')
|
102 |
#split_vocals = gr.Audio(type="filepath", label="Vocals")
|
103 |
#split_bass = gr.Audio(type="filepath", label="Bass")
|
@@ -109,7 +111,7 @@ with gr.Blocks(css=css) as demo:
|
|
109 |
with gr.Row():
|
110 |
model = gr.Radio(["melody", "medium", "small", "large"], label="Model", value="melody", interactive=True)
|
111 |
with gr.Row():
|
112 |
-
duration = gr.Slider(minimum=1, maximum=30, value=10, step=1, label="Duration", interactive=True)
|
113 |
with gr.Row():
|
114 |
submit = gr.Button("Submit")
|
115 |
#with gr.Row():
|
|
|
32 |
return "./out/mdx_extra_q/test/drums.wav"
|
33 |
elif chosen_out_track == "other":
|
34 |
return "./out/mdx_extra_q/test/other.wav"
|
35 |
+
elif chosen_out_track == "all-in":
|
36 |
+
return "test.wav"
|
37 |
|
38 |
def load_model(version):
|
39 |
print("Loading model", version)
|
|
|
99 |
|
100 |
with gr.Column():
|
101 |
uploaded_sound = gr.Audio(type="numpy", label="Input", source="upload")
|
102 |
+
chosen_track = gr.Radio(["vocals", "bass", "drums", "other", "all-in"], label="Track", info="Which track from your audio do you want to mashup ?", value="vocals")
|
103 |
load_sound_btn = gr.Button('Load your sound')
|
104 |
#split_vocals = gr.Audio(type="filepath", label="Vocals")
|
105 |
#split_bass = gr.Audio(type="filepath", label="Bass")
|
|
|
111 |
with gr.Row():
|
112 |
model = gr.Radio(["melody", "medium", "small", "large"], label="Model", value="melody", interactive=True)
|
113 |
with gr.Row():
|
114 |
+
duration = gr.Slider(minimum=1, maximum=30, value=10, step=1, label="Generated Music Duration", interactive=True)
|
115 |
with gr.Row():
|
116 |
submit = gr.Button("Submit")
|
117 |
#with gr.Row():
|