Zw07 commited on
Commit
8f7bbbd
1 Parent(s): 0ceb9e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -152,8 +152,9 @@ def main():
152
  #wav = my_read_file(wav,max_second_encode)
153
  watermark = model.get_watermark(wav, default_sr)
154
  watermarked_audio = wav + watermark
155
- shape = watermarked_audio.shape()
156
  st.markdown(shape)
 
157
  watermarked_audio = torchaudio.save("output.wav", watermarked_audio, default_sr)
158
  # watermarked_audio, encode_time_cost = add_watermark(tmp_input_audio_file, watermark_text)
159
  st.write("Watermarked Audio:")
 
152
  #wav = my_read_file(wav,max_second_encode)
153
  watermark = model.get_watermark(wav, default_sr)
154
  watermarked_audio = wav + watermark
155
+ shape = watermarked_audio.size()
156
  st.markdown(shape)
157
+ print(watermarked_audio.size())
158
  watermarked_audio = torchaudio.save("output.wav", watermarked_audio, default_sr)
159
  # watermarked_audio, encode_time_cost = add_watermark(tmp_input_audio_file, watermark_text)
160
  st.write("Watermarked Audio:")