File size: 956 Bytes
ead1598
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import gradio as gr
import os
os.system("midi_ddsp_download_model_weights")
def inference(audio):
  os.system("midi_ddsp_synthesize --midi_path "+audio.name)
  return str(audio.name)+"/0_violin.wav"
  
title = "Demucs"
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."
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>"
examples=[['test.mp3']]
gr.Interface(
    inference, 
    gr.inputs.File(type="file", label="Input"), 
    [gr.outputs.Audio(type="filepath", label="Vocals")],
    title=title,
    description=description,
    article=article,
    examples=examples,
    enable_queue=True
    ).launch(debug=True)