Zw07 commited on
Commit
8deac30
·
verified ·
1 Parent(s): 60a6d87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ import datetime
7
  import numpy as np
8
  import soundfile
9
  from wavmark.utils import file_reader
10
-
11
 
12
  # pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
13
 
@@ -70,7 +70,7 @@ def main():
70
  if audio_file and watermark_text:
71
  with st.spinner("Adding Watermark..."):
72
  pass
73
- # watermarked_audio, encode_time_cost = add_watermark(tmp_input_audio_file, watermark_text)
74
  # st.write("Watermarked Audio:")
75
  # print("watermarked_audio:", watermarked_audio)
76
  # st.audio(watermarked_audio, format="audio/wav")
 
7
  import numpy as np
8
  import soundfile
9
  from wavmark.utils import file_reader
10
+ from audioseal import AudioSeal
11
 
12
  # pipeline = pipeline(task="image-classification", model="julien-c/hotdog-not-hotdog")
13
 
 
70
  if audio_file and watermark_text:
71
  with st.spinner("Adding Watermark..."):
72
  pass
73
+ watermarked_audio, encode_time_cost = add_watermark(tmp_input_audio_file, watermark_text)
74
  # st.write("Watermarked Audio:")
75
  # print("watermarked_audio:", watermarked_audio)
76
  # st.audio(watermarked_audio, format="audio/wav")