Update app.py
Browse files
app.py
CHANGED
@@ -152,9 +152,10 @@ 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.size()
|
156 |
st.markdown(shape)
|
157 |
-
|
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:")
|
|
|
152 |
#wav = my_read_file(wav,max_second_encode)
|
153 |
watermark = model.get_watermark(wav, default_sr)
|
154 |
watermarked_audio = wav + watermark
|
155 |
+
print(watermarked_audio.size())
|
156 |
shape = watermarked_audio.size()
|
157 |
st.markdown(shape)
|
158 |
+
|
159 |
watermarked_audio = torchaudio.save("output.wav", watermarked_audio, default_sr)
|
160 |
# watermarked_audio, encode_time_cost = add_watermark(tmp_input_audio_file, watermark_text)
|
161 |
st.write("Watermarked Audio:")
|