pnavin commited on
Commit
5a2fae2
·
1 Parent(s): 27d65f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ def app():
31
  # Play the original and enhanced audio
32
  sample_rate = 8000
33
  enhanced_signal = enhanced_signal.reshape((1,enhanced_signal.shape[0]))
34
- torchaudio.save('enhanced_sound.wav', enhanced_signal, sample_rate) enhanced_byte = 'enhanced_signal.wav'.read()
35
  with open('amazing_sound.wav', 'rb') as f:
36
  enhanced_byte = f.read()
37
  st.audio(audio_bytes, format='audio/wav')
 
31
  # Play the original and enhanced audio
32
  sample_rate = 8000
33
  enhanced_signal = enhanced_signal.reshape((1,enhanced_signal.shape[0]))
34
+ torchaudio.save('enhanced_sound.wav', enhanced_signal, sample_rate)
35
  with open('amazing_sound.wav', 'rb') as f:
36
  enhanced_byte = f.read()
37
  st.audio(audio_bytes, format='audio/wav')