Spaces:
Sleeping
Sleeping
Vivien Chappelier
commited on
Commit
·
0c16ea5
1
Parent(s):
dbf8075
no space to avoid line break
Browse files
app.py
CHANGED
@@ -109,9 +109,9 @@ class BZHStableSignatureDemo(object):
|
|
109 |
chances = int(1 / pvalue + 1)
|
110 |
rpv = 10**int(math.log10(pvalue))
|
111 |
if pvalue < 1e-3:
|
112 |
-
result = "Watermark detected with low confidence (p-value
|
113 |
if pvalue < 1e-9:
|
114 |
-
result = "Watermark detected with high confidence (p-value
|
115 |
return (img0, result)
|
116 |
|
117 |
|
|
|
109 |
chances = int(1 / pvalue + 1)
|
110 |
rpv = 10**int(math.log10(pvalue))
|
111 |
if pvalue < 1e-3:
|
112 |
+
result = "Watermark detected with low confidence (p-value<%.0e)" % rpv # (< 1/%d chances of being wrong)" % chances
|
113 |
if pvalue < 1e-9:
|
114 |
+
result = "Watermark detected with high confidence (p-value<%.0e)" % rpv # (< 1/%d chances of being wrong)" % chances
|
115 |
return (img0, result)
|
116 |
|
117 |
|