Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ COLORS = [
|
|
22 |
def predict(audio_file_pth):
|
23 |
|
24 |
with torch.inference_mode():
|
25 |
-
output = pipe(processor(audio_file_pth.name)[:
|
26 |
audio = output.audios[0]
|
27 |
|
28 |
return gr.make_waveform((16000, audio.ravel()), bars_color=random.choice(COLORS), bar_count=75)
|
@@ -45,7 +45,7 @@ gr.Interface(
|
|
45 |
gr.File(label="Upload MIDI", file_count="single", file_types=[".mid"]),
|
46 |
],
|
47 |
outputs=[
|
48 |
-
gr.Video(label="Synthesised
|
49 |
],
|
50 |
title=title,
|
51 |
description=description,
|
|
|
22 |
def predict(audio_file_pth):
|
23 |
|
24 |
with torch.inference_mode():
|
25 |
+
output = pipe(processor(audio_file_pth.name)[:5])
|
26 |
audio = output.audios[0]
|
27 |
|
28 |
return gr.make_waveform((16000, audio.ravel()), bars_color=random.choice(COLORS), bar_count=75)
|
|
|
45 |
gr.File(label="Upload MIDI", file_count="single", file_types=[".mid"]),
|
46 |
],
|
47 |
outputs=[
|
48 |
+
gr.Video(label="Synthesised Music"),
|
49 |
],
|
50 |
title=title,
|
51 |
description=description,
|