nakas commited on
Commit
5599810
1 Parent(s): 999ee24

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +5 -6
utils.py CHANGED
@@ -620,11 +620,10 @@ class Utils_functions:
620
  ),
621
  -2,
622
  )
623
-
624
- string = ' '.join(str(x) for x in abwvc)
625
  return (
626
  np.clip(spec, -1.0, 1.0),
627
- string,
628
  )
629
 
630
  def render_gradio(self, models_ls_1, models_ls_2, models_ls_3, train=True):
@@ -665,10 +664,10 @@ class Utils_functions:
665
  ],
666
  outputs=[
667
  gr.Image(label="Log-MelSpectrogram of Generated Audio (first 23 s)"),
668
- "text",
669
  ],
670
  title="musika!",
671
- description="forked from https://huggingface.co/spaces/marcop/musika Just trying to get the api returning data. Blazingly Fast 44.1 kHz Stereo Waveform Music Generation of Arbitrary Length. Be patient and enjoy the weirdness!",
672
  article=article_text,
673
  )
674
 
@@ -687,4 +686,4 @@ class Utils_functions:
687
  print("--------------------------------")
688
  print("--------------------------------")
689
  print("--------------------------------")
690
- print("--------------------------------")
 
620
  ),
621
  -2,
622
  )
623
+
 
624
  return (
625
  np.clip(spec, -1.0, 1.0),
626
+ (self.args.sr, np.int16(abwvc * 32767.0)),
627
  )
628
 
629
  def render_gradio(self, models_ls_1, models_ls_2, models_ls_3, train=True):
 
664
  ],
665
  outputs=[
666
  gr.Image(label="Log-MelSpectrogram of Generated Audio (first 23 s)"),
667
+ gr.Audio(type="numpy", label="Generated Audio"),
668
  ],
669
  title="musika!",
670
+ description="Blazingly Fast 44.1 kHz Stereo Waveform Music Generation of Arbitrary Length. Be patient and enjoy the weirdness!",
671
  article=article_text,
672
  )
673
 
 
686
  print("--------------------------------")
687
  print("--------------------------------")
688
  print("--------------------------------")
689
+ print("--------------------------------")