Closed RJ-1998 closed 3 years ago
In order to expedite the trouble-shooting process, please provide a code snippet to reproduce the issue reported here. Thanks!
Hello @rthadur ! Thanks for replying to my issue. Please find this repo containing all the code and model.json file whch I am using.
I see this error while running the above code
can you please resolve this and also load the model from local folder like this
$( document ).ready(async function () { $('.progress-bar').show(); console.log( "Loading model..." ); model = await tf.loadGraphModel('model/model.json'); console.log( "Model loaded." ); $('.progress-bar').hide(); });
@rthadur I am using a cors extension in my browser and turning CORS extension on solves this error. You can use this cors extension in firefox
Same error please check below
@rthadur Please check the following steps:-
@rthadur , @lina128 Hey Guys. Any updates on the issue?
Hi @RJ-1998 , why don't you pass in model from loadLayersModel directly in this line? https://github.com/RJ-1998/react-chatbot-nlp/blob/bf8680b120452979c2c7ff450feb7549864a4070/chatbot/src/App.js#L15
Thanks @lina128 it worked!! Actually I was following one article that suggested the other way. I wish I knew it before.
I am trying to predict the results from the converted python keras model into tensorflow js, I have tried a lot of possible combinations to get the answer but it keeps throwing this error. The input shape it expects is [null,7] which I am providing it but still not working :-( Any help would be appreciated. Below is model and it's summary.