Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,7 @@ def ui():
|
|
| 56 |
stft_mix = stft(waveform_mix)
|
| 57 |
#plotting the spectogram
|
| 58 |
spec_img=plot_spectrogram(stft_mix)
|
| 59 |
-
st.image(spec_img)
|
| 60 |
#showing mixed audio in streamlit
|
| 61 |
|
| 62 |
torchaudio.save("./waveform_mix.wav", waveform_mix, sr)
|
|
@@ -71,24 +71,10 @@ def ui():
|
|
| 71 |
#plotting the cleaned audio and hearing it
|
| 72 |
spec_clean_img=plot_spectrogram(stft_souden)
|
| 73 |
waveform_souden = waveform_souden.reshape(1, -1)
|
| 74 |
-
st.image(spec_clean_img)
|
| 75 |
torchaudio.save("./waveform_souden.wav", waveform_souden, sr)
|
| 76 |
st.audio("./waveform_souden.wav")
|
| 77 |
|
| 78 |
if __name__=="__main__":
|
| 79 |
ui()
|
| 80 |
|
| 81 |
-
|
| 82 |
-
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
|
|
|
| 56 |
stft_mix = stft(waveform_mix)
|
| 57 |
#plotting the spectogram
|
| 58 |
spec_img=plot_spectrogram(stft_mix)
|
| 59 |
+
# st.image(spec_img)
|
| 60 |
#showing mixed audio in streamlit
|
| 61 |
|
| 62 |
torchaudio.save("./waveform_mix.wav", waveform_mix, sr)
|
|
|
|
| 71 |
#plotting the cleaned audio and hearing it
|
| 72 |
spec_clean_img=plot_spectrogram(stft_souden)
|
| 73 |
waveform_souden = waveform_souden.reshape(1, -1)
|
| 74 |
+
# st.image(spec_clean_img)
|
| 75 |
torchaudio.save("./waveform_souden.wav", waveform_souden, sr)
|
| 76 |
st.audio("./waveform_souden.wav")
|
| 77 |
|
| 78 |
if __name__=="__main__":
|
| 79 |
ui()
|
| 80 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|