Importing pre-trained tensorflow model with tensorflow.js for an app in react

I’m new to Tensorflow and I’m working on making a cosmetic product recommendation app.

I already have my model trained in Tensorflow I made it using Google COLab resources and even exported it to JSON.

My problem is that I can’t figure out how to get tf.loadLayersModel to recognize the path where the model.json file is located.

Can someone suggest me how I can solve it?

How does the tf.loadLayersModel function work?
[Modified by the moderator]

Hi @BGUST, I think you have to pass the path( A string path to the ModelAndWeightsConfig JSON describing the model in the canonical TensorFlow.js format) to the pathOrIOHandler argument while using tf.loadLayersModel. Thank You.