NyxKrage commited on
Commit
0c0d9f6
·
verified ·
1 Parent(s): ce502af

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -107,9 +107,9 @@
107
  }
108
  } catch {
109
  try {
110
- model_size = await fetch(
111
  `https://huggingface.co/api/models/${hf_model}`
112
- ).then(r => r.json())["safetensors"]["total"]
113
  if (isNaN(model_size)) {
114
  throw new Error("no size in pytorch metadata")
115
  }
 
107
  }
108
  } catch {
109
  try {
110
+ model_size = (await fetch(
111
  `https://huggingface.co/api/models/${hf_model}`
112
+ ).then(r => r.json()))["safetensors"]["total"]
113
  if (isNaN(model_size)) {
114
  throw new Error("no size in pytorch metadata")
115
  }