wrice commited on
Commit
b7217bd
·
1 Parent(s): 4ff3c7a

add app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -10,11 +10,6 @@ def denoise(inputs):
10
  audio = torch.from_numpy(audio)[None]
11
  audio = audio / 32768.0
12
 
13
- print(audio.shape)
14
-
15
- if audio.shape[0] > 1:
16
- audio = audio[0].unsqueeze(0)
17
-
18
  if sr != MODEL.config.sample_rate:
19
  audio = torchaudio.functional.resample(audio, sr, MODEL.config.sample_rate)
20
 
 
10
  audio = torch.from_numpy(audio)[None]
11
  audio = audio / 32768.0
12
 
 
 
 
 
 
13
  if sr != MODEL.config.sample_rate:
14
  audio = torchaudio.functional.resample(audio, sr, MODEL.config.sample_rate)
15