nakas commited on
Commit
5b3e2c1
·
1 Parent(s): 3549abb

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +4 -2
utils.py CHANGED
@@ -622,7 +622,8 @@ class Utils_functions:
622
  )
623
 
624
  return (
625
- (self.args.sr, np.int16(abwvc * 32767.0)),
 
626
  )
627
 
628
  def render_gradio(self, models_ls_1, models_ls_2, models_ls_3, train=True):
@@ -662,7 +663,8 @@ class Utils_functions:
662
  ),
663
  ],
664
  outputs=[
665
- gr.Audio(type="numpy", label="Generated Audio"),
 
666
  ],
667
  title="musika!",
668
  description="Blazingly Fast 44.1 kHz Stereo Waveform Music Generation of Arbitrary Length. Be patient and enjoy the weirdness!",
 
622
  )
623
 
624
  return (
625
+ np.clip(spec, -1.0, 1.0),
626
+ (np.int16(abwvc * 32767.0)),
627
  )
628
 
629
  def render_gradio(self, models_ls_1, models_ls_2, models_ls_3, train=True):
 
663
  ),
664
  ],
665
  outputs=[
666
+ gr.Image(label="Log-MelSpectrogram of Generated Audio (first 23 s)"),
667
+ "text",
668
  ],
669
  title="musika!",
670
  description="Blazingly Fast 44.1 kHz Stereo Waveform Music Generation of Arbitrary Length. Be patient and enjoy the weirdness!",