Vivien Chappelier commited on
Commit
8fe2131
1 Parent(s): 2d11242
Files changed (1) hide show
  1. app.py +1 -1
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(p-value))
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: