onchange = async (event) => {
        const { files } = event.target;
        if (files.length === 0) return;
        elemBtnStartCmpl.disabled = true;
        elemBtnPickFile.disabled = true;
        await startCompletions(null, files);
      };
      elemBtnStartEmbd.onclick = async () => {
        elemBtnStartEmbd.disabled = true;
        await startEmbeddings(EMBD_MODEL);
      };
    }

    /////////////////////////////////////////////////////////////////////
    // completions

    async function star