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

Update app.py

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