diff --git a/static/app.js b/static/app.js index 45adcb6..0ea12e2 100644 --- a/static/app.js +++ b/static/app.js @@ -1758,6 +1758,26 @@ async function initializeApp() { await loadQueue(); // Load active jobs queue at page load await loadUploadsBrowser(); // Load previously uploaded videos browser + // Load GPU Diagnostics + try { + const res = await fetch("/api/diagnostics"); + if (res.ok) { + const diag = await res.json(); + const gpuInfo = document.getElementById("gpu-info"); + if (gpuInfo) { + if (diag.gpu && diag.gpu.available && diag.gpu.gpus.length > 0) { + const gpuName = diag.gpu.gpus[0].name; + gpuInfo.textContent = `GPU Active: ${gpuName} (Vulkan)`; + } else { + gpuInfo.textContent = "GPU Active: Vulkan Device"; + } + } + } + } catch (err) { + console.error("Error loading GPU diagnostics:", err); + } + + // Register btn-refresh-uploads click handler const refreshUploadsBtn = document.getElementById("refresh-uploads-btn"); if (refreshUploadsBtn) { diff --git a/static/index.html b/static/index.html index a84eb13..1c55163 100644 --- a/static/index.html +++ b/static/index.html @@ -33,7 +33,7 @@