NyxKrage commited on
Commit
cbf6da2
1 Parent(s): 1b68ba4

Update index.html

Browse files
Files changed (1) hide show
  1. 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 === null) {
86
- model_size = JSON.parse(params_el.attributes.getNamedItem("data-props").value)["model"]["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)["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
  }