PeterPinetree commited on
Commit
08467b0
·
verified ·
1 Parent(s): d1438b4

Update index.html

Browse files

changed "" to "qwen"

Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -122,7 +122,7 @@
122
 
123
  // --- Backend config (no cross-origin isolation) ---
124
  env.localModelPath = new URL("assets/models/", window.location.href).href;
125
- env.allowRemoteModels = true;
126
  env.useBrowserCache = true;
127
  env.backends.onnx.webgpu = { enabled: false };
128
  env.backends.onnx.preferredBackend = "wasm";
@@ -311,7 +311,7 @@
311
  files.set("tokenizer_config.json", new Blob([JSON.stringify(tokCfgJSON)], { type: "application/json" }));
312
  if (smapJSON) files.set("special_tokens_map.json", new Blob([JSON.stringify(smapJSON)], { type: "application/json" }));
313
 
314
- tokenizer = await AutoTokenizer.from_pretrained("", {
315
  files,
316
  local_files_only: true,
317
  progress_callback: onProgress,
 
122
 
123
  // --- Backend config (no cross-origin isolation) ---
124
  env.localModelPath = new URL("assets/models/", window.location.href).href;
125
+ env.allowRemoteModels = false;
126
  env.useBrowserCache = true;
127
  env.backends.onnx.webgpu = { enabled: false };
128
  env.backends.onnx.preferredBackend = "wasm";
 
311
  files.set("tokenizer_config.json", new Blob([JSON.stringify(tokCfgJSON)], { type: "application/json" }));
312
  if (smapJSON) files.set("special_tokens_map.json", new Blob([JSON.stringify(smapJSON)], { type: "application/json" }));
313
 
314
+ tokenizer = await AutoTokenizer.from_pretrained("qwen", {
315
  files,
316
  local_files_only: true,
317
  progress_callback: onProgress,