Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def predict(
|
|
| 105 |
|
| 106 |
return (
|
| 107 |
waveform_video,
|
| 108 |
-
(sr, melody_wavform.numpy()) if melody_input else None,
|
| 109 |
)
|
| 110 |
|
| 111 |
|
|
@@ -144,7 +144,7 @@ def ui(**kwargs):
|
|
| 144 |
..., int(sr * continuation_start) : int(sr * continuation_end)
|
| 145 |
]
|
| 146 |
|
| 147 |
-
return (sr, prompt_waveform.numpy())
|
| 148 |
|
| 149 |
with gr.Blocks(css=css) as interface:
|
| 150 |
gr.Markdown(
|
|
|
|
| 105 |
|
| 106 |
return (
|
| 107 |
waveform_video,
|
| 108 |
+
(sr, melody_wavform.unsqueeze(0).numpy()) if melody_input else None,
|
| 109 |
)
|
| 110 |
|
| 111 |
|
|
|
|
| 144 |
..., int(sr * continuation_start) : int(sr * continuation_end)
|
| 145 |
]
|
| 146 |
|
| 147 |
+
return (sr, prompt_waveform.unsqueeze(0).numpy())
|
| 148 |
|
| 149 |
with gr.Blocks(css=css) as interface:
|
| 150 |
gr.Markdown(
|