adefossez commited on
Commit
14b5718
1 Parent(s): 48384f4

fix batching

Browse files
Files changed (1) hide show
  1. app_batched.py +2 -2
app_batched.py CHANGED
@@ -58,8 +58,8 @@ def predict(texts, melodies):
58
  for output in outputs:
59
  with NamedTemporaryFile("wb", suffix=".wav", delete=False) as file:
60
  audio_write(file.name, output, MODEL.sample_rate, strategy="loudness", add_suffix=False)
61
- out_files.append([file.name])
62
- return out_files
63
 
64
 
65
  with gr.Blocks() as demo:
 
58
  for output in outputs:
59
  with NamedTemporaryFile("wb", suffix=".wav", delete=False) as file:
60
  audio_write(file.name, output, MODEL.sample_rate, strategy="loudness", add_suffix=False)
61
+ out_files.append(file.name)
62
+ return [out_files]
63
 
64
 
65
  with gr.Blocks() as demo: