From bd42fa29a6f4fbe36baeb1db205bf487150c2706 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 23 Jul 2019 15:58:11 +0100 Subject: [PATCH] Bugfix the new Leaflet AI layer, but there are still issues to work out. --- client_src/js/LayerAI.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client_src/js/LayerAI.mjs b/client_src/js/LayerAI.mjs index 5938900..934adb4 100644 --- a/client_src/js/LayerAI.mjs +++ b/client_src/js/LayerAI.mjs @@ -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}`) ); }