Spaces:
Runtime error
Runtime error
fix batching
Browse files- 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(
|
| 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:
|