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