From 172c2bf275b0511ae0622df6a1efbd17bc2cfd2f Mon Sep 17 00:00:00 2001 From: Justin Georgi Date: Wed, 21 Feb 2024 17:20:23 -0700 Subject: [PATCH] Fix Cordova mobile and PWA model locations Signed-off-by: Justin Georgi --- src/pages/detect.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/pages/detect.vue b/src/pages/detect.vue index ad87a63..d42a3ec 100644 --- a/src/pages/detect.vue +++ b/src/pages/detect.vue @@ -333,7 +333,10 @@ this.activeRegion = 0 this.detectorName = 'thorax' this.classesList = thoraxClasses - this.modelLocation = '../models/thorax_tfwm/model.json' + /* VITE setting */ + //this.modelLocation = '../models/thorax_tfwm/model.json' + /* PWA Build setting */ + this.modelLocation = './models/thorax_tfwm/model.json' this.modelLocationCordova = 'https://localhost/models/thorax_tfwm/model.json' break; case 'abdomen':