Update app.py
Browse files
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)
|
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')
|