vjdevane commited on
Commit
ceef4e6
·
verified ·
1 Parent(s): 4c59830

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ def ctc_lambda_func(args):
8
  return K.ctc_batch_cost(labels, y_pred, input_length, label_length)
9
 
10
  # Load the model, providing the custom loss function in the custom_objects dictionary
11
- loaded_model = load_model('Text_recognizer_Using_CRNN_model.keras', custom_objects={'ctc': ctc_lambda_func})
12
 
13
  def greet(name):
14
  return "Hello " + name + "!!"
 
8
  return K.ctc_batch_cost(labels, y_pred, input_length, label_length)
9
 
10
  # Load the model, providing the custom loss function in the custom_objects dictionary
11
+ loaded_model = load_model('Text_recognizer_Using_CRNN_model.keras', custom_objects={'ctc': ctc_lambda_func},safe_mode=False)
12
 
13
  def greet(name):
14
  return "Hello " + name + "!!"