hantech commited on
Commit
bf0b467
·
verified ·
1 Parent(s): a9156d4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -64,7 +64,7 @@ def predict(filepath):
64
  cropped_image = inp[min_y:max_y,min_x:max_x,:] # crop the image
65
  cropped_image = Image.fromarray(cropped_image)
66
  out = viet_ocr_predict(cropped_image)
67
- catch:
68
  out = text
69
  texts = texts + '\t' + out
70
 
 
64
  cropped_image = inp[min_y:max_y,min_x:max_x,:] # crop the image
65
  cropped_image = Image.fromarray(cropped_image)
66
  out = viet_ocr_predict(cropped_image)
67
+ except:
68
  out = text
69
  texts = texts + '\t' + out
70