ranbac commited on
Commit
755b8bd
·
verified ·
1 Parent(s): fd2f280

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -139,7 +139,7 @@ def predict_pipeline(image_file):
139
  img = np.array(Image.open(image_file).convert('RGB'))
140
 
141
  # Gọi OCR (cls=True giúp nhận diện chiều văn bản tốt hơn)
142
- result = ocr.ocr(img, cls=True)
143
 
144
  vis_img = draw_results(img.copy(), result, FONT_PATH)
145
  md_out, json_out = format_output(result)
 
139
  img = np.array(Image.open(image_file).convert('RGB'))
140
 
141
  # Gọi OCR (cls=True giúp nhận diện chiều văn bản tốt hơn)
142
+ result = ocr.ocr(img)
143
 
144
  vis_img = draw_results(img.copy(), result, FONT_PATH)
145
  md_out, json_out = format_output(result)