AkashDataScience commited on
Commit
68816f5
·
1 Parent(s): 0f8ba6a

Adding logs

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -5,11 +5,13 @@ from PIL import Image
5
  reader = easyocr.Reader(['en'])
6
 
7
  def inference(img_path, width_ths):
 
8
  output = reader.readtext(img_path, detail=0, slope_ths=0.7, ycenter_ths=0.9,
9
  height_ths=0.8, width_ths=width_ths, add_margin=0.2)
10
-
 
11
  output = "\n".join(output)
12
-
13
  return output
14
 
15
  title = "Receipt RAG"
 
5
  reader = easyocr.Reader(['en'])
6
 
7
  def inference(img_path, width_ths):
8
+ print("yes")
9
  output = reader.readtext(img_path, detail=0, slope_ths=0.7, ycenter_ths=0.9,
10
  height_ths=0.8, width_ths=width_ths, add_margin=0.2)
11
+ print(output)
12
+ print("="*20)
13
  output = "\n".join(output)
14
+ print(output)
15
  return output
16
 
17
  title = "Receipt RAG"