Sanjayraju30 commited on
Commit
41933ea
·
verified ·
1 Parent(s): 1f1d6d4

Update src/ocr_engine.py

Browse files
Files changed (1) hide show
  1. src/ocr_engine.py +1 -1
src/ocr_engine.py CHANGED
@@ -19,4 +19,4 @@ def extract_weight_from_image(pil_img):
19
  confidences = [int(conf) for conf in data['conf'] if conf.isdigit()]
20
  avg_conf = sum(confidences)/len(confidences) if confidences else 0
21
 
22
- return extracted_text.strip(), avg_conf
 
19
  confidences = [int(conf) for conf in data['conf'] if conf.isdigit()]
20
  avg_conf = sum(confidences)/len(confidences) if confidences else 0
21
 
22
+ return extracted_text.strip(), avg_conf