lukewys commited on
Commit
46f8673
1 Parent(s): 274775a

Add application file

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -5,6 +5,7 @@ from pathlib import Path
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_mix.wav"
10
 
@@ -13,7 +14,7 @@ description = "Gradio demo for MIDI-DDSP: Detailed Control of Musical Performanc
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,
 
5
  os.system("midi_ddsp_download_model_weights")
6
 
7
  def inference(audio):
8
+ print(Path(audio.name))
9
  os.system("midi_ddsp_synthesize --midi_path "+audio.name)
10
  return Path(audio.name).stem+"/0_mix.wav"
11
 
 
14
 
15
  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>"
16
 
17
+ examples=[['./input.mid']]
18
 
19
  gr.Interface(
20
  inference,