Update index.html
Browse files71 unmodified lines72737475767778798071 unmodified lineslet model_size = 0try {model_size = (await fetch(`https://huggingface.co/${hf_model}/raw/main/model.safetensors.index.json`).then(r => r.json()))["metadata"]["total_size"] / 2} catch (e) {try {model_size = (await fetch(`https://huggingface.co/${hf_model}/raw/main/pytorch_model.bin.index.json`).then(r => r.json()))["metadata"]["total_size"] / 2} catch {let model_page = await fetch("https://corsproxy.io/?" + encodeURIComponent(`https://huggingface.co/${hf_model}`)71 unmodified lines72737475767778798081828384858671 unmodified lineslet model_size = 0try {model_size = (await fetch(`https://huggingface.co/${hf_model}/raw/main/model.safetensors.index.json`).then(r => r.json()))["metadata"]["total_size"] / 2if (model_size === undefined) {throw new Erorr("no size in safetensors metadata")}} catch (e) {try {model_size = (await fetch(`https://huggingface.co/${hf_model}/raw/main/pytorch_model.bin.index.json`).then(r => r.json()))["metadata"]["total_size"] / 2if (model_size === undefined) {throw new Erorr("no size in pytorch metadata")}} catch {let model_page = await fetch("https://corsproxy.io/?" + encodeURIComponent(`https://huggingface.co/${hf_model}`)
index.html+6