shivr commited on
Commit
c4348ac
1 Parent(s): c71de0f

Transpose output for scipy writing

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -68,7 +68,7 @@ The resulting waveform can be saved as a `.wav` file:
68
  ```python
69
  import scipy
70
 
71
- scipy.io.wavfile.write("techno.wav", rate=model.config.sampling_rate, data=output.float().numpy())
72
  ```
73
 
74
  Or displayed in a Jupyter Notebook / Google Colab:
 
68
  ```python
69
  import scipy
70
 
71
+ scipy.io.wavfile.write("techno.wav", rate=model.config.sampling_rate, data=output.T.float().numpy())
72
  ```
73
 
74
  Or displayed in a Jupyter Notebook / Google Colab: