Bugfix the new Leaflet AI layer, but there are still issues to work out.

This commit is contained in:
Starbeamrainbowlabs 2019-07-23 15:58:11 +01:00
parent 2a065e144a
commit bd42fa29a6

View file

@ -37,12 +37,12 @@ class LayerAI {
this.index = JSON.parse(
await GetFromUrl(Config.ai_index_file)
);
console.log(index);
console.log(this.index);
for(let gateway of this.index.index) {
this.gateways.set(
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}`)
);
}