NyxKrage commited on
Commit
969e568
·
verified ·
1 Parent(s): ba33a10

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -92,11 +92,11 @@
92
  throw new Error("Model is either private or gated and provided access token does not have access to the repo")
93
  }
94
  let config = await config_res.json()
 
 
95
  if ("text_config" in config) {
96
  config = config["text_config"]
97
  }
98
- let model_size = 0
99
- let dtype = parseInt(config["torch_dtype"].replaceAll(/\D/g, '')) / 8
100
  try {
101
  model_size = (await fetch(`https://huggingface.co/${hf_model}/resolve/main/model.safetensors.index.json`, auth).then(r => r.json()))["metadata"]["total_size"] / dtype
102
  if (isNaN(model_size)) {
 
92
  throw new Error("Model is either private or gated and provided access token does not have access to the repo")
93
  }
94
  let config = await config_res.json()
95
+ let model_size = 0
96
+ let dtype = parseInt(config["torch_dtype"].replaceAll(/\D/g, '')) / 8
97
  if ("text_config" in config) {
98
  config = config["text_config"]
99
  }
 
 
100
  try {
101
  model_size = (await fetch(`https://huggingface.co/${hf_model}/resolve/main/model.safetensors.index.json`, auth).then(r => r.json()))["metadata"]["total_size"] / dtype
102
  if (isNaN(model_size)) {