Spaces:
Sleeping
Sleeping
add app.py
Browse files
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 |
|