Spaces:
Running
Running
Rename streamlit_test_space.py to app.py
Browse files
streamlit_test_space.py → app.py
RENAMED
@@ -36,7 +36,7 @@ def add_watermark(audio_path, watermark_text):
|
|
36 |
def decode_watermark(audio_path):
|
37 |
assert os.path.exists(audio_path)
|
38 |
|
39 |
-
|
40 |
signal, sr, audio_length_second = my_read_file(audio_path, max_second_decode)
|
41 |
payload_decoded, _ = wavmark.decode_watermark(model, signal, show_progress=False)
|
42 |
decode_cost = time.time() - t1
|
@@ -46,7 +46,7 @@ def decode_watermark(audio_path):
|
|
46 |
|
47 |
payload_decoded_str = "".join([str(i) for i in payload_decoded])
|
48 |
st.write("Result:", payload_decoded_str)
|
49 |
-
|
50 |
|
51 |
|
52 |
def create_default_value():
|
|
|
36 |
def decode_watermark(audio_path):
|
37 |
assert os.path.exists(audio_path)
|
38 |
|
39 |
+
|
40 |
signal, sr, audio_length_second = my_read_file(audio_path, max_second_decode)
|
41 |
payload_decoded, _ = wavmark.decode_watermark(model, signal, show_progress=False)
|
42 |
decode_cost = time.time() - t1
|
|
|
46 |
|
47 |
payload_decoded_str = "".join([str(i) for i in payload_decoded])
|
48 |
st.write("Result:", payload_decoded_str)
|
49 |
+
|
50 |
|
51 |
|
52 |
def create_default_value():
|