dungnt7 commited on
Commit
8e8d08d
1 Parent(s): efed173

[App] Filter low confidence ceil

Browse files
Files changed (1) hide show
  1. app.py +0 -1
app.py CHANGED
@@ -45,7 +45,6 @@ def cv_to_PIL(cv_img):
45
 
46
  async def pytess(cell_pil_img, threshold: float = 0.5):
47
  text, prob = detector.predict(cell_pil_img, return_prob=True)
48
- st.write(prob)
49
  if prob < threshold:
50
  return ""
51
  return text.strip()
 
45
 
46
  async def pytess(cell_pil_img, threshold: float = 0.5):
47
  text, prob = detector.predict(cell_pil_img, return_prob=True)
 
48
  if prob < threshold:
49
  return ""
50
  return text.strip()