lukewys commited on
Commit
6283eae
1 Parent(s): 7d85f14

Add application file

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -6,10 +6,7 @@ os.system("midi_ddsp_download_model_weights")
6
 
7
  def inference(audio):
8
  os.system("midi_ddsp_synthesize --midi_path "+audio.name)
9
- os.system('ls')
10
- os.system(f'ls ./{Path(audio.name).stem}')
11
- print(f'./{Path(audio.name).stem}/0_mix.wav')
12
- return f'./{Path(audio.name).stem}/0_mix.wav'
13
 
14
  title = "Midi-DDSP"
15
  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."
 
6
 
7
  def inference(audio):
8
  os.system("midi_ddsp_synthesize --midi_path "+audio.name)
9
+ return f'./{Path(audio.name).stem}/mix.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."