Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -89,7 +89,7 @@ with gr.Blocks() as demo:
|
|
| 89 |
with gr.Row():
|
| 90 |
uploaded_sound = gr.Audio(type="numpy", label="Input", source="microphone")
|
| 91 |
load_sound_btn = gr.Button('Load sound')
|
| 92 |
-
split_vocals = gr.Audio(type="filepath", label="Vocals")
|
| 93 |
#split_bass = gr.Audio(type="filepath", label="Bass")
|
| 94 |
#split_drums = gr.Audio(type="filepath", label="Drums")
|
| 95 |
#split_others = gr.Audio(type="filepath", label="Other")
|
|
@@ -109,7 +109,7 @@ with gr.Blocks() as demo:
|
|
| 109 |
# cfg_coef = gr.Number(label="Classifier Free Guidance", value=3.0, interactive=True)
|
| 110 |
with gr.Column():
|
| 111 |
output = gr.Audio(label="Generated Music")
|
| 112 |
-
load_sound_btn.click(split_process, inputs=[uploaded_sound], outputs=[
|
| 113 |
submit.click(predict, inputs=[uploaded_image, melody, duration], outputs=[output])
|
| 114 |
|
| 115 |
gr.Markdown(
|
|
|
|
| 89 |
with gr.Row():
|
| 90 |
uploaded_sound = gr.Audio(type="numpy", label="Input", source="microphone")
|
| 91 |
load_sound_btn = gr.Button('Load sound')
|
| 92 |
+
#split_vocals = gr.Audio(type="filepath", label="Vocals")
|
| 93 |
#split_bass = gr.Audio(type="filepath", label="Bass")
|
| 94 |
#split_drums = gr.Audio(type="filepath", label="Drums")
|
| 95 |
#split_others = gr.Audio(type="filepath", label="Other")
|
|
|
|
| 109 |
# cfg_coef = gr.Number(label="Classifier Free Guidance", value=3.0, interactive=True)
|
| 110 |
with gr.Column():
|
| 111 |
output = gr.Audio(label="Generated Music")
|
| 112 |
+
load_sound_btn.click(split_process, inputs=[uploaded_sound], outputs=[melody])
|
| 113 |
submit.click(predict, inputs=[uploaded_image, melody, duration], outputs=[output])
|
| 114 |
|
| 115 |
gr.Markdown(
|