export default function LoadingBar({ loadProgress, isCached }) { const percent = loadProgress?.progress != null ? Math.round(loadProgress.progress) : 0; const fileName = loadProgress?.file?.split("/").pop() || ""; return (
{isCached ? "Loading from cache" : "Downloading model"} {fileName ? ` — ${fileName} ${percent}%` : "..."}