subhankarg commited on
Commit
2c8305b
1 Parent(s): ae570c5

Update readme with correct saving instructions.

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -71,7 +71,7 @@ audio = model.convert_spectrogram_to_audio(spec=spectrogram)
71
 
72
  ```python
73
  # Save the audio to disk in a file called speech.wav
74
- sf.write("speech.wav", audio.to('cpu').numpy(), 22050)
75
  ```
76
 
77
 
71
 
72
  ```python
73
  # Save the audio to disk in a file called speech.wav
74
+ sf.write("speech.wav", audio.to('cpu').detach().numpy()[0], 22050)
75
  ```
76
 
77