From 0d911bff029a2a3081f131671b73edb8e1e47c12 Mon Sep 17 00:00:00 2001 From: Eyal Gruss Date: Sun, 22 Sep 2024 21:04:39 +0300 Subject: [PATCH] Update script.js --- script.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script.js b/script.js index 880d4bc..5bc433f 100644 --- a/script.js +++ b/script.js @@ -14,8 +14,8 @@ import { } from 'https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.15/vision_bundle.mjs' const mediapipe_wasm_url = 'https://cdn.jsdelivr.net/npm/@mediapipe/tasks-vision@0.10.15/wasm' -import {AutoModel, AutoProcessor, RawImage} from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.17/dist/transformers.min.js' -// import {AutoModel, AutoProcessor, RawImage} from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.0.0-alpha.15/dist/transformers.min.js' +// import {AutoModel, AutoProcessor, RawImage} from 'https://cdn.jsdelivr.net/npm/@xenova/transformers@2.17/dist/transformers.min.js' +import {AutoModel, AutoProcessor, RawImage} from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.0.0-alpha.15/dist/transformers.min.js' import 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@4.21.0/dist/tf.min.js' import 'https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-webgpu@4.21.0/dist/tf-backend-webgpu.min.js' @@ -584,4 +584,4 @@ async function capture() { }) trackProcessor.readable.pipeThrough(transformer).pipeTo(trackGenerator.writable) out_video.srcObject = new MediaStream([trackGenerator]) -} \ No newline at end of file +}