Spaces:
Build error
Build error
Update utils.py
Browse files
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 |
-
|
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 |
-
"
|
669 |
],
|
670 |
title="musika!",
|
671 |
-
description="
|
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("--------------------------------")
|