From a2479b74be7d81f7ae107756cc97d26cea129b2a Mon Sep 17 00:00:00 2001 From: cmdr2 Date: Thu, 17 Aug 2023 12:26:23 +0530 Subject: [PATCH] Show thumbnails for embeddings --- ui/index.html | 4 ++-- ui/media/js/main.js | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ui/index.html b/ui/index.html index 3d366498..b95eed21 100644 --- a/ui/index.html +++ b/ui/index.html @@ -694,9 +694,9 @@ diff --git a/ui/media/js/main.js b/ui/media/js/main.js index 05dd64a1..4abacdfc 100644 --- a/ui/media/js/main.js +++ b/ui/media/js/main.js @@ -2735,16 +2735,16 @@ function updateEmbeddingsList(filter = "") { let token=m.toLowerCase() if (token.search(filter) != -1) { let button - if (iconlist.length==0) { - button = document.createElement("button") - button.innerText = m - } else { - let img = '/media/images/noimg.png' - if (token in embIcon) { - img = `/bucket/${profileName}/embeddings/${embIcon[token]}` - } - button = createModifierCard(m, [img,img], true) + // if (iconlist.length==0) { + // button = document.createElement("button") + // button.innerText = m + // } else { + let img = '/media/images/noimg.png' + if (token in embIcon) { + img = `/bucket/${profileName}/embeddings/${embIcon[token]}` } + button = createModifierCard(m, [img,img], true) + // } button.dataset["embedding"] = m button.addEventListener("click", onButtonClick) toplevel.appendChild(button)