Update app.py
Browse files
app.py
CHANGED
|
@@ -9,19 +9,19 @@ def inference(audio):
|
|
| 9 |
return Path(audio.name).stem+"/0_violin.wav"
|
| 10 |
|
| 11 |
title = "Midi-DDSP"
|
| 12 |
-
description = "Gradio demo for MIDI-DDSP:
|
| 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 |
-
|
| 17 |
|
| 18 |
gr.Interface(
|
| 19 |
inference,
|
| 20 |
-
gr.
|
| 21 |
-
|
| 22 |
title=title,
|
| 23 |
description=description,
|
| 24 |
article=article,
|
| 25 |
-
|
| 26 |
enable_queue=True
|
| 27 |
).launch(debug=True)
|
|
|
|
| 9 |
return Path(audio.name).stem+"/0_violin.wav"
|
| 10 |
|
| 11 |
title = "Midi-DDSP"
|
| 12 |
+
description = "Gradio demo for MIDI-DDSP: !!!EXPECT VIOLIN INPUT!!! \n Reworked to fix runtime error, based on: https://huggingface.co/spaces/akhaliq/midi-ddsp"
|
| 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 |
+
example=['ode_to_joy.mid']
|
| 17 |
|
| 18 |
gr.Interface(
|
| 19 |
inference,
|
| 20 |
+
gr.File(file_types=['.mid','.midi']),
|
| 21 |
+
"audio",
|
| 22 |
title=title,
|
| 23 |
description=description,
|
| 24 |
article=article,
|
| 25 |
+
example=example,
|
| 26 |
enable_queue=True
|
| 27 |
).launch(debug=True)
|