pdufour commited on
Commit
4c4928f
1 Parent(s): 1477d49

Update index.js

Browse files
Files changed (1) hide show
  1. index.js +3 -3
index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { env, AutoTokenizer, RawImage, Tensor } from '@huggingface/transformers';
2
- import { getModelJSON, getModelFile } from "@huggingface/transformers/utils/hub.js";
3
- import * as ort from "onnxruntime-web/webgpu";
4
 
5
  const INPUT_IMAGE_SIZE = [960, 960];
6
  const HEIGHT_FACTOR = 10;
 
1
+ import { env, AutoTokenizer, RawImage, Tensor } from 'https://cdn.jsdelivr.net/npm/@huggingface/transformers';
2
+ import { getModelJSON, getModelFile } from "https://cdn.jsdelivr.net/npm/@huggingface/transformers@3.0.2/src/utils/hub.js";
3
+ import * as ort from "https://cdn.jsdelivr.net/npm/onnxruntime-web@1.20.0/dist/ort.webgpu.mjs";
4
 
5
  const INPUT_IMAGE_SIZE = [960, 960];
6
  const HEIGHT_FACTOR = 10;