Bugfix the new Leaflet AI layer, but there are still issues to work out.
This commit is contained in:
parent
2a065e144a
commit
bd42fa29a6
1 changed files with 2 additions and 2 deletions
|
@ -37,12 +37,12 @@ class LayerAI {
|
||||||
this.index = JSON.parse(
|
this.index = JSON.parse(
|
||||||
await GetFromUrl(Config.ai_index_file)
|
await GetFromUrl(Config.ai_index_file)
|
||||||
);
|
);
|
||||||
console.log(index);
|
console.log(this.index);
|
||||||
|
|
||||||
for(let gateway of this.index.index) {
|
for(let gateway of this.index.index) {
|
||||||
this.gateways.set(
|
this.gateways.set(
|
||||||
gateway.id,
|
gateway.id,
|
||||||
await tf.LayersModel.loadModel(`${window.location.href}/${path.dirname(Config.ai_index_file)}/${gateway.id}`)
|
await tf.loadModel(`${window.location.href}/${path.dirname(Config.ai_index_file)}/${gateway.id}`)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue