Update app.py
Browse files
app.py
CHANGED
|
@@ -198,7 +198,10 @@ def main():
|
|
| 198 |
print(f"This is likely an unwatermarked audio: {result2}")
|
| 199 |
st.markdown("Probability of audio being watermarked: ")
|
| 200 |
st.markdown(result2)
|
| 201 |
-
|
|
|
|
|
|
|
|
|
|
| 202 |
|
| 203 |
except RuntimeError:
|
| 204 |
st.error("Please input audio with one channel (mono-channel)")
|
|
|
|
| 198 |
print(f"This is likely an unwatermarked audio: {result2}")
|
| 199 |
st.markdown("Probability of audio being watermarked: ")
|
| 200 |
st.markdown(result2)
|
| 201 |
+
if result2 < 0.5:
|
| 202 |
+
st.markdown("This is likely an unwatermarked audio!")
|
| 203 |
+
else:
|
| 204 |
+
st.markdown("This is likely an watermarked audio!")
|
| 205 |
|
| 206 |
except RuntimeError:
|
| 207 |
st.error("Please input audio with one channel (mono-channel)")
|