async function updateLocalModelStatus() {
  const localModelStatus = document.getElementById('local-model-status');
  const localLoadButton = document.getElementById('load-local');
  const localRemoveButton = document.getElementById('remove-local');

  const modelsInfo = await tf.io.listModels();
  if (LOCAL_MODEL_URL in modelsInfo) {
    localModelStatus.textContent = 'Found locally-stored model saved at ' +
        modelsInfo[LOCAL_MODEL_URL].dateSaved.toDateString();
    localLoadButton.disabled = false;
    localRemoveButton.disabled = false;
  } else {
    localModelStatus.textContent = 'No locally-stored model is found.';
    localLoadButton.disabled = true;
    localRemoveButton.disabled = true;
  }
}
Check the presence and status of locally saved models (e.g., in IndexedDB).

Update the UI control states accordingly.