lukewys commited on
Commit
7d85f14
1 Parent(s): 05adc66

Add application file

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