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