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

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +3 -0
index.html CHANGED
@@ -92,6 +92,9 @@
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
  try {
 
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 {