Spaces:
Running
Running
Update app.py
Browse files
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 =
|
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 |
|