Update index.html
Browse files- index.html +3 -3
index.html
CHANGED
@@ -82,11 +82,11 @@
|
|
82 |
let el = document.createElement( 'html' );
|
83 |
el.innerHTML = model_page
|
84 |
let params_el = el.querySelector('div[data-target="ModelSafetensorsParams"]')
|
85 |
-
if (params_el
|
86 |
-
model_size = JSON.parse(params_el.attributes.getNamedItem("data-props").value)["
|
87 |
} else {
|
88 |
params_el = el.querySelector('div[data-target="ModelHeader"]')
|
89 |
-
model_size = JSON.parse(params_el.attributes.getNamedItem("data-props").value)["safetensors"]["total"]
|
90 |
}
|
91 |
}
|
92 |
}
|
|
|
82 |
let el = document.createElement( 'html' );
|
83 |
el.innerHTML = model_page
|
84 |
let params_el = el.querySelector('div[data-target="ModelSafetensorsParams"]')
|
85 |
+
if (params_el !== null) {
|
86 |
+
model_size = JSON.parse(params_el.attributes.getNamedItem("data-props").value)["safetensors"]["total"]
|
87 |
} else {
|
88 |
params_el = el.querySelector('div[data-target="ModelHeader"]')
|
89 |
+
model_size = JSON.parse(params_el.attributes.getNamedItem("data-props").value)["model"]["safetensors"]["total"]
|
90 |
}
|
91 |
}
|
92 |
}
|