Vageesh1 commited on
Commit
13e479e
1 Parent(s): b106ffd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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,captions='Spectrogram of Mixture Speech (dB)')
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,captions='Spectrogram of Mixture Speech (dB)')
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