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,7 +71,7 @@ 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 |
|
|
|
|
| 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 |
|