Update app.py
Browse files
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 |
-
|
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 |
|