File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,6 +89,8 @@ import Base from "../layouts/Base.astro"
8989<script >
9090 import { imf } from "interscript/ml"
9191
92+ const ASSET_INDEX = "https://api.interscript.org/v1/assets/index-v2/models-index.yaml"
93+
9294 const $ = (id: string) => document.getElementById(id)!
9395 let current: { dispose?(): Promise<void> } | null = null
9496
@@ -98,7 +100,7 @@ import Base from "../layouts/Base.astro"
98100 const label = $("progress-label")
99101 progress.hidden = false
100102 label.textContent = "Resolving verified index…"
101- const resolved = await imf.resolve(modelId, undefined , {
103+ const resolved = await imf.resolve(modelId, ASSET_INDEX , {
102104 onProgress: (fraction, bytes) => {
103105 bar.style.width = `${Math.round(fraction * 100)}%`
104106 label.textContent = `${(bytes / 1e6).toFixed(0)} MB (${Math.round(fraction * 100)}%)`
You can’t perform that action at this time.
0 commit comments