Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
46c48e5
1
Parent(s):
3fa8ad4
Update app.py
Browse files
app.py
CHANGED
@@ -3,14 +3,18 @@ import os
|
|
3 |
from pathlib import Path
|
4 |
|
5 |
os.system("midi_ddsp_download_model_weights")
|
|
|
6 |
def inference(audio):
|
7 |
os.system("midi_ddsp_synthesize --midi_path "+audio.name)
|
8 |
return Path(audio.name).stem+"/0_violin.wav"
|
9 |
|
10 |
-
title = "
|
11 |
-
description = "Gradio demo for
|
12 |
-
|
13 |
-
|
|
|
|
|
|
|
14 |
gr.Interface(
|
15 |
inference,
|
16 |
gr.inputs.File(type="file", label="Input"),
|
|
|
3 |
from pathlib import Path
|
4 |
|
5 |
os.system("midi_ddsp_download_model_weights")
|
6 |
+
|
7 |
def inference(audio):
|
8 |
os.system("midi_ddsp_synthesize --midi_path "+audio.name)
|
9 |
return Path(audio.name).stem+"/0_violin.wav"
|
10 |
|
11 |
+
title = "Midi-DDSP"
|
12 |
+
description = "Gradio demo for MIDI-DDSP: Detailed Control of Musical Performance via Hierarchical Modeling. To use it, simply upload your midi file, or click one of the examples to load them. Read more at the links below."
|
13 |
+
|
14 |
+
article = "<p style='text-align: center'><a href='https://arxiv.org/abs/2112.09312' target='_blank'>MIDI-DDSP: Detailed Control of Musical Performance via Hierarchical Modeling</a> | <a href='https://github.com/magenta/midi-ddsp' target='_blank'>Github Repo</a></p>"
|
15 |
+
|
16 |
+
examples=[['input.mid']]
|
17 |
+
|
18 |
gr.Interface(
|
19 |
inference,
|
20 |
gr.inputs.File(type="file", label="Input"),
|