Currently I am trying to load a json model that I've converted from tensorflow into my tensorflow function.
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@2.0.0/dist/tf.min.js">
</script>
<script>
//!pip install tensorflowjs;
// * as tf from '@tensorlowjs/tfjs';
async function tensorFlow(){
const model = await tf.loadLayersModel('AI-Model/model.json');
}
tensorFlow()
</script>
Directory of my GitHub Repository
However, when I try to add the json file I get the error that loadLayersModel() expects a http request. Is there a way to load in my model from the repository? If not how do I go about this?