haoheliu commited on
Commit
b650afc
·
verified ·
1 Parent(s): 26c3c7a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -93,7 +93,7 @@ if uploaded_file and st.button("Enhance Audio"):
93
  )
94
 
95
  # Save enhanced audio
96
- output_waveform = waveform_sr.detach().numpy()
97
  save_wave(torch.tensor(output_waveform), inputpath=truncated_path, savepath=temp_dir, name="output", samplerate=48000)
98
 
99
  # Plot enhanced spectrogram
 
93
  )
94
 
95
  # Save enhanced audio
96
+ output_waveform = waveform_sr
97
  save_wave(torch.tensor(output_waveform), inputpath=truncated_path, savepath=temp_dir, name="output", samplerate=48000)
98
 
99
  # Plot enhanced spectrogram