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