Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ CHARS = "ABCDEFGHIJKLMNPQRSTUVWXYZ0123456789" # exclude I, O
|
|
6 |
CHARS_DICT = {char:i for i, char in enumerate(CHARS)}
|
7 |
DECODE_DICT = {i:char for i, char in enumerate(CHARS)}
|
8 |
|
9 |
-
|
10 |
-
interpreter = tf.lite.Interpreter(model_path='lite-model_east-text-detector_fp16_1.tflite')
|
11 |
interpreter.allocate_tensors()
|
12 |
recog_interpreter = tf.lite.Interpreter(model_path='recognition.tflite')
|
13 |
recog_input_details = recog_interpreter.get_input_details()
|
|
|
6 |
CHARS_DICT = {char:i for i, char in enumerate(CHARS)}
|
7 |
DECODE_DICT = {i:char for i, char in enumerate(CHARS)}
|
8 |
|
9 |
+
interpreter = tf.lite.Interpreter(model_path='detection.tflite')
|
10 |
+
#interpreter = tf.lite.Interpreter(model_path='lite-model_east-text-detector_fp16_1.tflite')
|
11 |
interpreter.allocate_tensors()
|
12 |
recog_interpreter = tf.lite.Interpreter(model_path='recognition.tflite')
|
13 |
recog_input_details = recog_interpreter.get_input_details()
|