radames commited on
Commit
000b8ee
1 Parent(s): 62c459e
Files changed (1) hide show
  1. app.py +2 -2
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(