'Outlook add-in adding an AI model with tensorflow js
I have an Outlook add-in loaded with the React template. I wanna if it's possible to load on itself with TensorFlowJS from the files within it. I try with the function:
const loadedModel = await tf.loadLayersModel('file://model/model.json');
The error I've been getting is it:
Not allowed to load local resource
I also refereced from the file system itself:
const loadedModel = await tf.loadLayersModel('./model/model.json');
But I get the error of 404. I already test loading in other React projects with no issues. So how can I make this work?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
