vjdevane commited on
Commit
3f87f19
·
verified ·
1 Parent(s): dd49bda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -62,7 +62,7 @@ def process_image(img):
62
  filepath="test_img.png"
63
  img = cv2.imread(filepath, cv2.IMREAD_GRAYSCALE)
64
  img = process_image(img)
65
- prediction =loaded_model.predict(np.asarray([img]))
66
  decoded = K.ctc_decode(prediction,
67
  input_length=np.ones(prediction.shape[0]) * prediction.shape[1],
68
  greedy=True)[0][0]
 
62
  filepath="test_img.png"
63
  img = cv2.imread(filepath, cv2.IMREAD_GRAYSCALE)
64
  img = process_image(img)
65
+ prediction =model.predict(np.asarray([img]))
66
  decoded = K.ctc_decode(prediction,
67
  input_length=np.ones(prediction.shape[0]) * prediction.shape[1],
68
  greedy=True)[0][0]