Vivien Chappelier commited on
Commit
125c82c
1 Parent(s): bd9d89a

make confidence more consistent with score

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -119,7 +119,7 @@ class BZHStableSignatureDemo(object):
119
  rpv = 10**int(math.log10(pvalue))
120
  if pvalue < 1e-3:
121
  result = "Watermark detected with low confidence" # (p-value<%.0e)" % rpv
122
- if pvalue < 1e-9:
123
  result = "Watermark detected with high confidence" # (p-value<%.0e)" % rpv
124
  score = min(int(-math.log10(pvalue)), 10)
125
  #print("score = ", score)
 
119
  rpv = 10**int(math.log10(pvalue))
120
  if pvalue < 1e-3:
121
  result = "Watermark detected with low confidence" # (p-value<%.0e)" % rpv
122
+ if pvalue < 1e-6:
123
  result = "Watermark detected with high confidence" # (p-value<%.0e)" % rpv
124
  score = min(int(-math.log10(pvalue)), 10)
125
  #print("score = ", score)