Update app.py
Browse files
app.py
CHANGED
@@ -208,7 +208,7 @@ def main():
|
|
208 |
result, message = detector.detect_watermark(watermarked_audio, sample_rate=default_sr, message_threshold=0.5)
|
209 |
st.markdown("Probability of audio being watermarked: ")
|
210 |
st.markdown(result)
|
211 |
-
st.markdown("This is likely a watermarked audio
|
212 |
print(f"\nThis is likely a watermarked audio: {result}")
|
213 |
|
214 |
#Run on an unwatermarked audio
|
@@ -228,9 +228,8 @@ def main():
|
|
228 |
result2, message2 = detector.detect_watermark(wav, sample_rate=default_sr, message_threshold=0.5)
|
229 |
print(f"This is likely an unwatermarked audio: {result2}")
|
230 |
st.markdown("Probability of audio being watermarked (Original Audio): ")
|
231 |
-
st.markdown(result)
|
232 |
st.markdown(result2)
|
233 |
-
st.markdown("This is likely an unwatermarked audio
|
234 |
|
235 |
|
236 |
if __name__ == "__main__":
|
|
|
208 |
result, message = detector.detect_watermark(watermarked_audio, sample_rate=default_sr, message_threshold=0.5)
|
209 |
st.markdown("Probability of audio being watermarked: ")
|
210 |
st.markdown(result)
|
211 |
+
st.markdown("This is likely a watermarked audio!")
|
212 |
print(f"\nThis is likely a watermarked audio: {result}")
|
213 |
|
214 |
#Run on an unwatermarked audio
|
|
|
228 |
result2, message2 = detector.detect_watermark(wav, sample_rate=default_sr, message_threshold=0.5)
|
229 |
print(f"This is likely an unwatermarked audio: {result2}")
|
230 |
st.markdown("Probability of audio being watermarked (Original Audio): ")
|
|
|
231 |
st.markdown(result2)
|
232 |
+
st.markdown("This is likely an unwatermarked audio!")
|
233 |
|
234 |
|
235 |
if __name__ == "__main__":
|