← back to Exo
cleaning up logging in index.js
25d67f509611b4b21f2fab056702bf4cfdc12fdf · 2024-11-13 15:23:58 -0800 · cadenmackenzie
Files touched
Diff
commit 25d67f509611b4b21f2fab056702bf4cfdc12fdf
Author: cadenmackenzie <cadenmackenzie@gmail.com>
Date: Wed Nov 13 15:23:58 2024 -0800
cleaning up logging in index.js
---
exo/tinychat/index.js | 6 ------
1 file changed, 6 deletions(-)
diff --git a/exo/tinychat/index.js b/exo/tinychat/index.js
index 9c64853f..07f0e559 100644
--- a/exo/tinychat/index.js
+++ b/exo/tinychat/index.js
@@ -78,7 +78,6 @@ document.addEventListener("alpine:init", () => {
async populateSelector() {
try {
- console.log("Fetching model pool...");
const response = await fetch(`${window.location.origin}/modelpool`);
if (!response.ok) {
const errorText = await response.text();
@@ -86,8 +85,6 @@ document.addEventListener("alpine:init", () => {
}
const data = await response.json();
- console.log("Received model pool data:", data);
-
const sel = document.querySelector('.model-select');
sel.innerHTML = '';
@@ -96,15 +93,12 @@ document.addEventListener("alpine:init", () => {
a[1].name.localeCompare(b[1].name)
);
- console.log("Sorted models:", sortedModels);
-
sortedModels.forEach(([key, value]) => {
const opt = document.createElement("option");
opt.value = key;
opt.textContent = `${value.name}${value.downloaded ? ' (downloaded)' : ''}`;
opt.classList.add(value.downloaded ? 'model-downloaded' : 'model-not-downloaded');
sel.appendChild(opt);
- console.log(`Added model: ${key} (${value.name}) - Downloaded: ${value.downloaded}`);
});
} catch (error) {
console.error("Error populating model selector:", error);
← 84ce0768 Edit configure_mlx.sh for calculate dinamically the value fo
·
back to Exo
·
removing unneccesary css 95ce6657 →