Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def generate_audio():
|
|
52 |
# Convert audio to BytesIO in memory
|
53 |
output_io = io.BytesIO()
|
54 |
output_audio = audio_output[0].T.float().cpu().numpy()
|
55 |
-
sf.write(output_io, output_audio, pipe.vae.sampling_rate) # Save as WAV or your preferred format
|
56 |
output_io.seek(0) # Reset buffer pointer to beginning
|
57 |
|
58 |
# Send the file in response as attachment for download
|
|
|
52 |
# Convert audio to BytesIO in memory
|
53 |
output_io = io.BytesIO()
|
54 |
output_audio = audio_output[0].T.float().cpu().numpy()
|
55 |
+
sf.write(output_io, output_audio, pipe.vae.sampling_rate, format="WAV") # Save as WAV or your preferred format
|
56 |
output_io.seek(0) # Reset buffer pointer to beginning
|
57 |
|
58 |
# Send the file in response as attachment for download
|