tianhk commited on
Commit
52219b5
·
1 Parent(s): 11c4563

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -14,9 +14,8 @@ def inference(audio):
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
  gr.Interface(
17
- inference,
18
- gr.inputs.File(type="file", label="Input"),
19
- [gr.outputs.Audio(type="numpy", label="Output")],
20
- article=article,
21
- enable_queue=True
22
- ).launch(debug=True)
 
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
  gr.Interface(
17
+ fn = inference,
18
+ inputs = gr.inputs.File(type="file", label="Input"),
19
+ outputs = [gr.outputs.Audio(type="file", label="Output")],
20
+ article = article,
21
+ ).launch()