Zw07 commited on
Commit
4ceb548
·
verified ·
1 Parent(s): 0466670

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -157,11 +157,11 @@ def main():
157
  st.markdown(size)
158
 
159
  print(watermarked_audio.squeeze())
160
- squeeze = watermarked_audio.squeeze()
161
  shape = squeeze.size()
162
  st.markdown(shape)
163
 
164
- watermarked_audio = torchaudio.save("output.wav", watermarked_audio, default_sr)
165
  # watermarked_audio, encode_time_cost = add_watermark(tmp_input_audio_file, watermark_text)
166
  st.write("Watermarked Audio:")
167
  st.markdown(watermarked_audio)
 
157
  st.markdown(size)
158
 
159
  print(watermarked_audio.squeeze())
160
+ squeeze = watermarked_audio.squeeze(1)
161
  shape = squeeze.size()
162
  st.markdown(shape)
163
 
164
+ watermarked_audio = torchaudio.save("output.wav", squeeze, default_sr)
165
  # watermarked_audio, encode_time_cost = add_watermark(tmp_input_audio_file, watermark_text)
166
  st.write("Watermarked Audio:")
167
  st.markdown(watermarked_audio)