From e46e439aa59237bfa7d0d9362aef7ba9723b2df5 Mon Sep 17 00:00:00 2001 From: owaisazmal Date: Sat, 5 Oct 2024 18:40:51 -0700 Subject: [PATCH] Glitch fixed for git pages (./) --- script.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script.js b/script.js index e4ba013..f57f860 100644 --- a/script.js +++ b/script.js @@ -1,10 +1,10 @@ const video = document.getElementById('video') Promise.all([ - faceapi.nets.tinyFaceDetector.loadFromUri('/models'), - faceapi.nets.faceLandmark68Net.loadFromUri('/models'), - faceapi.nets.faceRecognitionNet.loadFromUri('/models'), - faceapi.nets.faceExpressionNet.loadFromUri('/models') + faceapi.nets.tinyFaceDetector.loadFromUri('./models'), + faceapi.nets.faceLandmark68Net.loadFromUri('./models'), + faceapi.nets.faceRecognitionNet.loadFromUri('./models'), + faceapi.nets.faceExpressionNet.loadFromUri('./models') ]).then(startVideo) function startVideo() {