ai impl
ci / docker_image (push) Failing after 1s
ci / deploy (push) Has been skipped

This commit is contained in:
2026-02-06 02:39:23 -06:00
parent 156e74450a
commit 90bbe4bfa4
11 changed files with 207 additions and 59 deletions
@@ -16,9 +16,15 @@
let description: string | undefined = $state();
let isGenerating = $state(false);
async function onSelect() {
async function onSelect(file: File) {
isGenerating = true;
description = await genDescription();
const buffer = await file.arrayBuffer();
const base64 = btoa(
String.fromCharCode(...new Uint8Array(buffer))
);
description = await genDescription(base64);
isGenerating = false;
}