sonic-widget 2.2.0 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,23 @@
1
1
  const CACHE_NAME = 'ai-ml-cache-v1';
2
2
  const urlsToCache = [
3
- 'tensorflow.min.js',
4
- 'model.json',
5
- // Add URLs of other AI/ML JavaScript libraries and model files here
6
- 'other-library.min.js',
7
- 'other-model.json'
3
+ // coco ssd
4
+ 'https://storage.googleapis.com/tfjs-models/savedmodel/ssdlite_mobilenet_v2/model.json',
5
+
6
+ // document model
7
+ "https://teachablemachine.withgoogle.com/models/ikFAYzyyu/model.json",
8
+ "https://teachablemachine.withgoogle.com/models/ikFAYzyyu/metadata.json",
9
+
10
+ // mask model
11
+ "https://teachablemachine.withgoogle.com/models/_08Yck2dy/model.json",
12
+ "https://teachablemachine.withgoogle.com/models/_08Yck2dy/metadata.json",
13
+
14
+ // blazeface
15
+ 'https://tfhub.dev/tensorflow/tfjs-model/blazeface/1/default/1/model.json?tfjs-format=file',
16
+
17
+ // handpose model
18
+ "https://tfhub.dev/mediapipe/tfjs-model/handpose_3d/detector/full/1/model.json?tfjs-format=file",
19
+ "https://tfhub.dev/mediapipe/tfjs-model/handpose_3d/landmark/full/1/model.json?tfjs-format=file"
20
+ // Add more model files if necessary
8
21
  ];
9
22
 
10
23
  self.addEventListener('install', function(event) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sonic-widget",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Sonic widget library for doing E-KYC",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",