wrice commited on
Commit
d2d93dc
·
1 Parent(s): d2af860

add app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def denoise(inputs):
32
  clean.append(clean_chunk.squeeze(0))
33
 
34
  denoised = torch.concat(clean).flatten()[: audio.shape[-1]].clamp(-1.0, 1.0)
35
- denoised = (denoised * 32767.0).numpy().astype("int16")
36
 
37
  print(f"Denoised shape: {denoised.shape}")
38
 
 
32
  clean.append(clean_chunk.squeeze(0))
33
 
34
  denoised = torch.concat(clean).flatten()[: audio.shape[-1]].clamp(-1.0, 1.0)
35
+ denoised = (denoised * 32767.0).numpy().astype(np.int16)
36
 
37
  print(f"Denoised shape: {denoised.shape}")
38