stardate69 commited on
Commit
1b72023
·
verified ·
1 Parent(s): 73e17f9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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