Ahsen Khaliq commited on
Commit
4cd124a
·
1 Parent(s): 7eca8ec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py CHANGED
@@ -17,6 +17,7 @@ import scipy.signal
17
  from tqdm.notebook import tqdm
18
  from time import sleep
19
  import pyloudnorm as pyln
 
20
 
21
  def measure_rt60(h, fs=1, decay_db=30, rt60_tgt=None):
22
  """
@@ -261,4 +262,18 @@ def inference(aud, effect_type):
261
  torchaudio.save("output.mp3", y_hat.view(chs,-1), sample_rate, compression=320.0)
262
  return "output.mp3"
263
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
264
 
 
17
  from tqdm.notebook import tqdm
18
  from time import sleep
19
  import pyloudnorm as pyln
20
+ import gradio as gr
21
 
22
  def measure_rt60(h, fs=1, decay_db=30, rt60_tgt=None):
23
  """
 
262
  torchaudio.save("output.mp3", y_hat.view(chs,-1), sample_rate, compression=320.0)
263
  return "output.mp3"
264
 
265
+ title = "Steerable nafx"
266
+ 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."
267
+ 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>"
268
+
269
+ gr.Interface(
270
+ inference,
271
+ gr.inputs.Audio(type="file", label="Input"),
272
+ gr.outputs.Audio(type="file", label="Output"),
273
+ title=title,
274
+ description=description,
275
+ article=article,
276
+ enable_queue=True
277
+ ).launch(debug=True)
278
+
279