Spaces:
Running
on
T4
Running
on
T4
Vivien Chappelier
commited on
Commit
•
8fe2131
1
Parent(s):
2d11242
fix typo
Browse files
app.py
CHANGED
@@ -107,7 +107,7 @@ class BZHStableSignatureDemo(object):
|
|
107 |
#result = "resolution = %dx%d p-value = %e" % (img.size[0], img.size[1], pvalue))
|
108 |
result = "No watermark detected."
|
109 |
chances = int(1 / pvalue + 1)
|
110 |
-
rpv = 10**int(math.log10(
|
111 |
if pvalue < 1e-3:
|
112 |
result = "Watermark detected with low confidence (p-value < %e)" % rpv # (< 1/%d chances of being wrong)" % chances
|
113 |
if pvalue < 1e-9:
|
|
|
107 |
#result = "resolution = %dx%d p-value = %e" % (img.size[0], img.size[1], pvalue))
|
108 |
result = "No watermark detected."
|
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 < %e)" % rpv # (< 1/%d chances of being wrong)" % chances
|
113 |
if pvalue < 1e-9:
|