Add in ENV variables which switch between the old (pose) and new (tasks-vision) models. Initially, I am thinking about having two separate PoseDetector.js pages, one which utilizes the old pose model in the detectPose method, and another page which utilizes the newer tasks-vision model. Both pages should refer and export their methods as "detectPose". This way the ENV variable will just be the paths to these pages which can be included in the import statements at the top of the separate pages for different exercises. If the developer wants to switch models, they will do so by changing the ENV variable.
Add in ENV variables which switch between the old (pose) and new (tasks-vision) models. Initially, I am thinking about having two separate PoseDetector.js pages, one which utilizes the old pose model in the detectPose method, and another page which utilizes the newer tasks-vision model. Both pages should refer and export their methods as "detectPose". This way the ENV variable will just be the paths to these pages which can be included in the import statements at the top of the separate pages for different exercises. If the developer wants to switch models, they will do so by changing the ENV variable.