Add todo
This commit is contained in:
parent
03c1cbb97f
commit
8917f746ec
1 changed files with 1 additions and 0 deletions
|
@ -31,6 +31,7 @@ class AIWrapper {
|
||||||
for(let gateway of this.index.index) {
|
for(let gateway of this.index.index) {
|
||||||
let net = new brain.NeuralNetwork();
|
let net = new brain.NeuralNetwork();
|
||||||
net.fromJSON(
|
net.fromJSON(
|
||||||
|
// TODO: Move this to the UI thread & do it only once?
|
||||||
await GetFromUrl(`${path.dirname(self.location.href)}/${path.dirname(this.Config.ai_index_file)}/${gateway.filename}`)
|
await GetFromUrl(`${path.dirname(self.location.href)}/${path.dirname(this.Config.ai_index_file)}/${gateway.filename}`)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue