tianhk commited on
Commit
681c9db
·
1 Parent(s): f6b63b7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -29,7 +29,6 @@ def midi_ddsp_synth(instrument, midi_file):
29
  return os.path.join('/tmp', os.path.basename(midi_file.name).replace('.mid', '.wav'))
30
 
31
  title = "Midi-DDSP"
32
- description = "Unofficial Gradio demo for MIDI-DDSP"
33
 
34
  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>"
35
 
@@ -37,11 +36,11 @@ gr.Interface(
37
  fn = midi_ddsp_synth,
38
  inputs = [
39
  gr.inputs.Textbox(
40
- lines=1, placeholder=None, default='', label='instrument'),
41
- gr.File(type="file", label="Input")
 
42
  ],
43
  outputs = "audio",
44
  title = title,
45
- description = description,
46
  article = article,
47
  ).launch(debug=True)
 
29
  return os.path.join('/tmp', os.path.basename(midi_file.name).replace('.mid', '.wav'))
30
 
31
  title = "Midi-DDSP"
 
32
 
33
  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>"
34
 
 
36
  fn = midi_ddsp_synth,
37
  inputs = [
38
  gr.inputs.Textbox(
39
+ lines=1, placeholder=None, default='', label='choose instrument from: violin, viola, cello, double bass,\
40
+ flute, oboe, clarinet, saxophone, bassoon, trumpet, horn, trombone, tuba'),
41
+ gr.File(type="file", label="Upload .mid file here")
42
  ],
43
  outputs = "audio",
44
  title = title,
 
45
  article = article,
46
  ).launch(debug=True)