Model prediction not working - basic text classification


I am facing issue when running prediction for text classification model. following sample code in link

examples = [
“The movie was great!”,
“The movie was okay.”,
“The movie was terrible…”,


Getting error as File “C:\Users\Admin\AppData\Local\Programs\Python\Python312\Lib\site-packages\keras\src\trainers\”, line 113, in get_data_adapter
raise ValueError(f"Unrecognized data type: x={x} (of type {type(x)})")

pls suggest to resolve

issue resolved using tensor datatype conversion as below.

export_model.predict( tf.convert_to_tensor(examples)).

** Obervation - type conversion is needed only in windows environment and not needed for Ubuntu