hantech commited on
Commit
b8c51f2
·
verified ·
1 Parent(s): cf95585

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -33,6 +33,7 @@ def viet_ocr_predict(inp):
33
  def predict(filepath):
34
  bounds = reader.readtext(filepath)
35
  inp = Image.open(filepath)
 
36
  texts=''
37
  for (bbox, text, prob) in bounds:
38
  (tl, tr, br, bl) = bbox
 
33
  def predict(filepath):
34
  bounds = reader.readtext(filepath)
35
  inp = Image.open(filepath)
36
+ width, height = inpinp.size
37
  texts=''
38
  for (bbox, text, prob) in bounds:
39
  (tl, tr, br, bl) = bbox