Update app.py
Browse files
app.py
CHANGED
@@ -99,8 +99,9 @@ with gr.Blocks(css=css) as demo:
|
|
99 |
|
100 |
with gr.Column():
|
101 |
uploaded_sound = gr.Audio(type="numpy", label="Input", source="upload")
|
102 |
-
|
103 |
-
|
|
|
104 |
#split_vocals = gr.Audio(type="filepath", label="Vocals")
|
105 |
#split_bass = gr.Audio(type="filepath", label="Bass")
|
106 |
#split_drums = gr.Audio(type="filepath", label="Drums")
|
@@ -111,7 +112,6 @@ with gr.Blocks(css=css) as demo:
|
|
111 |
melody = gr.Audio(source="upload", type="numpy", label="Track Condition (from previous step)", interactive=False)
|
112 |
with gr.Row():
|
113 |
model = gr.Radio(["melody", "medium", "small", "large"], label="MusicGen Model", value="melody", interactive=True)
|
114 |
-
with gr.Row():
|
115 |
duration = gr.Slider(minimum=1, maximum=30, value=10, step=1, label="Generated Music Duration", interactive=True)
|
116 |
with gr.Row():
|
117 |
submit = gr.Button("Submit")
|
|
|
99 |
|
100 |
with gr.Column():
|
101 |
uploaded_sound = gr.Audio(type="numpy", label="Input", source="upload")
|
102 |
+
with gr.Row():
|
103 |
+
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")
|
104 |
+
load_sound_btn = gr.Button('Load your sound')
|
105 |
#split_vocals = gr.Audio(type="filepath", label="Vocals")
|
106 |
#split_bass = gr.Audio(type="filepath", label="Bass")
|
107 |
#split_drums = gr.Audio(type="filepath", label="Drums")
|
|
|
112 |
melody = gr.Audio(source="upload", type="numpy", label="Track Condition (from previous step)", interactive=False)
|
113 |
with gr.Row():
|
114 |
model = gr.Radio(["melody", "medium", "small", "large"], label="MusicGen Model", value="melody", interactive=True)
|
|
|
115 |
duration = gr.Slider(minimum=1, maximum=30, value=10, step=1, label="Generated Music Duration", interactive=True)
|
116 |
with gr.Row():
|
117 |
submit = gr.Button("Submit")
|