wrice commited on
Commit
8c12fe6
·
1 Parent(s): ce93f82

Update to denoisers 0.2.0

Browse files
Files changed (2) hide show
  1. app.py +1 -4
  2. requirements.txt +1 -1
app.py CHANGED
@@ -1,9 +1,6 @@
1
  """Gradio demo for denoisers."""
2
- import tempfile
3
- from pathlib import Path
4
 
5
  import gradio as gr
6
- import numpy as np
7
  import torch
8
  import torchaudio
9
  from denoisers import UNet1DModel, WaveUNetModel
@@ -16,7 +13,7 @@ MODELS = [
16
  ]
17
 
18
 
19
- def denoise(model_name: str, audio_path: str):
20
  """Denoise audio."""
21
  if "unet1d" in model_name:
22
  model = UNet1DModel.from_pretrained(model_name)
 
1
  """Gradio demo for denoisers."""
 
 
2
 
3
  import gradio as gr
 
4
  import torch
5
  import torchaudio
6
  from denoisers import UNet1DModel, WaveUNetModel
 
13
  ]
14
 
15
 
16
+ def denoise(model_name: str, audio_path: str) -> str:
17
  """Denoise audio."""
18
  if "unet1d" in model_name:
19
  model = UNet1DModel.from_pretrained(model_name)
requirements.txt CHANGED
@@ -3,7 +3,7 @@ torch
3
  torchaudio
4
  pytorch-lightning
5
  pedalboard
6
- denoisers==0.1.7
7
  transformers
8
  librosa
9
  wandb
 
3
  torchaudio
4
  pytorch-lightning
5
  pedalboard
6
+ denoisers==0.2.0
7
  transformers
8
  librosa
9
  wandb