Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -111,7 +111,7 @@ def tao_waveform_denoise(file_path):
|
|
| 111 |
# 1. Waveform
|
| 112 |
librosa.display.waveshow(y, sr=sr, ax=ax[0,0], color='red')
|
| 113 |
ax[0,0].set_title("Waveform - Trước lọc")
|
| 114 |
-
librosa.display.waveshow(y_denoised, sr=sr, ax=ax[0,1], color='
|
| 115 |
ax[0,1].set_title("Waveform - Sau lọc")
|
| 116 |
|
| 117 |
# 2. FFT
|
|
@@ -123,7 +123,7 @@ def tao_waveform_denoise(file_path):
|
|
| 123 |
ax[1,0].set_xlim(0, 8000)
|
| 124 |
ax[1,0].set_title("FFT - Trước lọc")
|
| 125 |
|
| 126 |
-
ax[1,1].plot(freqs, fft_y_denoised, color='
|
| 127 |
ax[1,1].set_xlim(0, 8000)
|
| 128 |
ax[1,1].set_title("FFT - Sau lọc")
|
| 129 |
|
|
|
|
| 111 |
# 1. Waveform
|
| 112 |
librosa.display.waveshow(y, sr=sr, ax=ax[0,0], color='red')
|
| 113 |
ax[0,0].set_title("Waveform - Trước lọc")
|
| 114 |
+
librosa.display.waveshow(y_denoised, sr=sr, ax=ax[0,1], color='green')
|
| 115 |
ax[0,1].set_title("Waveform - Sau lọc")
|
| 116 |
|
| 117 |
# 2. FFT
|
|
|
|
| 123 |
ax[1,0].set_xlim(0, 8000)
|
| 124 |
ax[1,0].set_title("FFT - Trước lọc")
|
| 125 |
|
| 126 |
+
ax[1,1].plot(freqs, fft_y_denoised, color='green')
|
| 127 |
ax[1,1].set_xlim(0, 8000)
|
| 128 |
ax[1,1].set_title("FFT - Sau lọc")
|
| 129 |
|