Spaces:
Sleeping
Sleeping
Vivien Chappelier
commited on
Commit
•
c68dc14
1
Parent(s):
4188365
don't display the chances
Browse files
README.md
CHANGED
@@ -4,7 +4,7 @@ emoji: 🐢
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
-
sdk_version:
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
4 |
colorFrom: yellow
|
5 |
colorTo: purple
|
6 |
sdk: gradio
|
7 |
+
sdk_version: 3.34.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
app.py
CHANGED
@@ -95,9 +95,9 @@ class BZHStableSignatureDemo(object):
|
|
95 |
result = "No watermark detected."
|
96 |
chances = int(1 / pvalue + 1)
|
97 |
if pvalue < 1e-3:
|
98 |
-
result = "Weak watermark detected (< 1/%d chances of being wrong)" % chances
|
99 |
-
if pvalue < 1e-
|
100 |
-
result = "Strong watermark detected (< 1/%d chances of being wrong)" % chances
|
101 |
return (img0, result)
|
102 |
|
103 |
|
|
|
95 |
result = "No watermark detected."
|
96 |
chances = int(1 / pvalue + 1)
|
97 |
if pvalue < 1e-3:
|
98 |
+
result = "Weak watermark detected" # (< 1/%d chances of being wrong)" % chances
|
99 |
+
if pvalue < 1e-9:
|
100 |
+
result = "Strong watermark detected" # (< 1/%d chances of being wrong)" % chances
|
101 |
return (img0, result)
|
102 |
|
103 |
|