Apparently, by the code snippet, the model variable was not created by Model Maker, right? It seems you converted a model using the TFLite converter
the method evaluate_tflite is specific to Model Makers model class and it’s not a regular TFLite method.
you can see the code here 37
As you can see, it’s specific per problem domain. You can follow the code to implement your own version if needed.