Puyush commited on
Commit
bf81fd6
1 Parent(s): 2a27e8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -88,7 +88,7 @@ loaded_model = keras.models.load_model("ocr_model_pred.keras", custom_objects={"
88
  loaded_model.load_weights("ocr_model_pred_weights.h5")
89
  max_len = 5
90
 
91
- characters = {'I', 'Z', 'u', 'S', '3', 'h', 'v', 'T', 'M', 'e', 'P', '2', 'w', 'n', 'O', 'X', 'K', 'k', 'L', '8', 'N', 't', 'F', 'W', 'H', 'd', 's', '1', 'Y', 'z', 'r', 'R', 'c', 'f', 'y', 'V', 'A', 'G', 'j', 'b', '5', 'J', 'x', '7', 'm', 'E', 'B', 'p', 'g', 'l', 'U', '4', 'C', 'q', 'a', '6', 'Q', 'i', '9', 'D'}
92
  # mapping characters to integers
93
  char_to_num = layers.StringLookup(vocabulary=list(characters), mask_token=None)
94
 
 
88
  loaded_model.load_weights("ocr_model_pred_weights.h5")
89
  max_len = 5
90
 
91
+ characters = ['1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
92
  # mapping characters to integers
93
  char_to_num = layers.StringLookup(vocabulary=list(characters), mask_token=None)
94