neetnestor commited on
Commit
759f90d
1 Parent(s): 4217c45

feat: disable while initializing engine

Browse files
Files changed (1) hide show
  1. src/index.js +1 -0
src/index.js CHANGED
@@ -176,6 +176,7 @@ async function updateLastMessage(content) {
176
 
177
  /*************** UI binding ***************/
178
  document.getElementById("download").addEventListener("click", function () {
 
179
  initializeWebLLMEngine().then(() => {
180
  document.getElementById("send").disabled = false;
181
  });
 
176
 
177
  /*************** UI binding ***************/
178
  document.getElementById("download").addEventListener("click", function () {
179
+ document.getElementById("send").disabled = true;
180
  initializeWebLLMEngine().then(() => {
181
  document.getElementById("send").disabled = false;
182
  });