Ahsen Khaliq commited on
Commit
46c48e5
1 Parent(s): 3fa8ad4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -4
app.py CHANGED
@@ -3,14 +3,18 @@ import os
3
  from pathlib import Path
4
 
5
  os.system("midi_ddsp_download_model_weights")
 
6
  def inference(audio):
7
  os.system("midi_ddsp_synthesize --midi_path "+audio.name)
8
  return Path(audio.name).stem+"/0_violin.wav"
9
 
10
- title = "Demucs"
11
- description = "Gradio demo for Demucs: Music Source Separation in the Waveform Domain. To use it, simply upload your audio, or click one of the examples to load them. Read more at the links below."
12
- article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1911.13254' target='_blank'>Music Source Separation in the Waveform Domain</a> | <a href='https://github.com/facebookresearch/demucs' target='_blank'>Github Repo</a></p>"
13
- examples=[['test.mp3']]
 
 
 
14
  gr.Interface(
15
  inference,
16
  gr.inputs.File(type="file", label="Input"),
 
3
  from pathlib import Path
4
 
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_violin.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."
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,
20
  gr.inputs.File(type="file", label="Input"),